Function at 0x1005b2d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015926e
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x238], esi
lea eax, [esi + 8]
mov dword [esi], vtable.CSmartLogger.0
push eax
mov dword [esi + 4], vtable._BaseModule::CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ebx, [esi + 0x2c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x22c], ebx
call fcn.1000c0e0
mov ecx, eax
test ecx, ecx
je 0x1005b5c1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
lea edi, [esi + 0x38]
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 1
mov dword [esi + 0x34], 0x7d000
mov dword [ebp - 0x230], edi
call fcn.1000c0e0
mov ecx, eax
test ecx, ecx
je 0x1005b5cb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push 0
push eax
mov dword [esi + 0x34], 0x7d000
call fcn.100ec480
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [0x101c02f4]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.1000c0e0
mov ecx, eax
test ecx, ecx
je 0x1005b5d5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x21c]
call fcn.1001aad0
test al, al
jne 0x1005b448
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005b426
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.1000adf0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebx]
mov byte [ebp - 4], 5
mov dword [ebp - 0x220], 0xffffffff
lea edx, [eax - 0x10]
lea edi, [ecx - 0x10]
mov dword [ebp - 0x224], edx
cmp edx, edi
je 0x1005b4bd
cmp dword [edi + 0xc], 0
jl 0x1005b4b0
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x1005b4b0
push edx
call fcn.1000bc60
mov ecx, dword [ebp - 0x220]
lea edx, [edi + 0xc]
add esp, 4
mov dword [ebp - 0x228], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1005b4a9
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x228]
lea ecx, [eax + 0x10]
mov dword [ebx], ecx
jmp 0x1005b4bd
push dword [eax - 0xc]
mov ecx, ebx
push eax
call fcn.1000adf0
mov ecx, dword [ebx]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005b4c0
sub ecx, edx
mov edx, 2
sar ecx, 1
lea edi, [ecx + 1]
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100b45a3
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1005b581
lea esi, [edi + edi]
push esi
push 0
push ebx
call fcn.100ec480
mov edi, dword [ebp - 0x22c]
add esp, 0xc
shr esi, 1
mov edi, dword [edi]
je 0x1005b548
mov edx, SysReAllocString
mov ecx, ebx
sub edx, esi
sub edi, ebx
nop dword [eax]
lea eax, [edx + esi]
test eax, eax
je 0x1005b53b
movzx eax, word [edi + ecx]
test ax, ax
je 0x1005b53b
mov word [ecx], ax
add ecx, 2
sub esi, 1
jne 0x1005b520
test esi, esi
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edx, ebx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1005b554
mov ecx, dword [ebp - 0x230]
sub edx, esi
sar edx, 1
push edx
push ebx
call fcn.1000adf0
push 2
push ebx
call fcn.100b4158
mov esi, dword [ebp - 0x234]
add esp, 8
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x220]
mov byte [ebp - 4], 3
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1005b5a3
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10007270
push 0x80004005
call fcn.10007270
push 0x80004005
call fcn.10007270
int3