Function at 0x43b640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e221e
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x524a60]
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 edi, ecx
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x230], edi
lea eax, [edi + 8]
mov dword [edi], vtable.CSmartLogger.0
push eax
mov dword [edi + 4], vtable._BaseModule::CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov byte [ebp - 4], 1
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x43b944
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x2c], eax
mov byte [ebp - 4], 2
mov dword [edi + 0x30], 1
mov dword [edi + 0x34], 0x7d000
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x43b94e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x38], eax
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push 0
push eax
mov dword [edi + 0x34], 0x7d000
call fcn.004b1030
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4f0720
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x4f17a8
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x43b958
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.004040f0
test al, al
jne 0x43b7c2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43b7a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00404e90
mov eax, dword [ebp - 0x21c]
mov ecx, dword [edi + 0x2c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x224], 0xffffffff
lea edx, [eax - 0x10]
lea esi, [ecx - 0x10]
mov dword [ebp - 0x228], edx
cmp edx, esi
je 0x43b83b
cmp dword [esi + 0xc], 0
jl 0x43b82c
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x43b82c
push edx
call fcn.00404230
mov ecx, dword [ebp - 0x224]
lea edx, [esi + 0xc]
add esp, 4
mov dword [ebp - 0x220], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43b824
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x220]
lea ecx, [eax + 0x10]
mov dword [edi + 0x2c], ecx
jmp 0x43b83b
push dword [eax - 0xc]
lea ecx, [edi + 0x2c]
push eax
call fcn.00404e90
mov ecx, dword [edi + 0x2c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43b840
sub ecx, edx
mov edx, 2
sar ecx, 1
lea esi, [ecx + 1]
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a1b70
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x43b904
add esi, esi
push esi
push 0
push ebx
call fcn.004b1030
mov eax, dword [edi + 0x2c]
add esp, 0xc
shr esi, 1
je 0x43b8ce
mov edx, Ordinal_1
mov ecx, ebx
sub edx, esi
sub eax, ebx
mov dword [ebp - 0x220], eax
mov edi, eax
nop
lea eax, [edx + esi]
test eax, eax
je 0x43b8bb
movzx eax, word [edi + ecx]
test ax, ax
je 0x43b8bb
mov word [ecx], ax
add ecx, 2
sub esi, 1
jne 0x43b8a0
mov edi, dword [ebp - 0x22c]
lea eax, [ecx - 2]
test esi, esi
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]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x43b8e0
sub edx, esi
lea ecx, [edi + 0x38]
sar edx, 1
push edx
push ebx
call fcn.00404e90
push 2
push ebx
call fcn.004a12e0
add esp, 8
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x224]
mov byte [ebp - 4], 3
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x43b926
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.004a1588
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f90
push 0x80004005
call fcn.00403f90
push 0x80004005
call fcn.00403f90
int3