Function at 0x4187d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
mov esi, 0x476d74
push esi
lea ecx, [ebp - 0x10]
call fcn.0042a183
mov edi, dword [ebp + 8]
push dword [edi]
call fcn.0046176a
lea ecx, [ebp - 0xc]
mov ebx, eax
mov dword [esp], 0x20a
call fcn.0042465d
push dword [ebp - 0xc]
push 0x208
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x78]
call fcn.0040a005
push dword [ebp + 0xc]
lea ecx, [ebp - 0x78]
call fcn.0040a5fd
push dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
push 0x477f80
mov dword [ebp - 0x64], eax
call fcn.00428e1b
push dword [ebp - 0xc]
lea ecx, [ebp - 0x78]
push 0x477f84
call fcn.00428e1b
mov eax, dword [edi]
lea edx, [eax + ebx*2]
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
mov dword [ebp - 8], edx
call fcn.0040e58b
mov ebx, dword [ebp + 8]
cmp ebx, edx
jae 0x4189d6
lea eax, [ebp + 8]
call fcn.0040e4de
push 6
push ebx
push str.import
call fcn.004257a3
add esp, 0xc
test al, al
je 0x4189c2
lea ecx, [ebx + 0xc]
mov ax, word [ecx]
call fcn.004213da
test al, al
je 0x4189c2
mov word [ebx + 2], 0x2f
mov word [ebx], 0x2f
mov ebx, ecx
cmp ebx, dword [ebp + 8]
jae 0x4189c2
mov ax, word [ebx]
call fcn.004213da
test al, al
je 0x4188ca
inc ebx
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x4188b7
cmp ebx, dword [ebp + 8]
jae 0x4189c2
lea ecx, [ebp - 4]
call fcn.0042460b
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push ebx
call fcn.00412374
add esp, 0xc
push esi
lea ecx, [ebp - 0x18]
call fcn.0042a183
push esi
lea ecx, [ebp - 0x14]
call fcn.0042a183
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.004341ea
mov ecx, eax
call fcn.004341ea
push dword [eax]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x1c]
inc bl
call fcn.00424686
lea ecx, [ebp - 0x20]
call fcn.00424686
lea ecx, [ebp - 0x14]
call fcn.00424686
lea ecx, [ebp - 0x18]
call fcn.00424686
test bl, bl
je 0x4189ba
mov eax, dword [ebp + 8]
mov ax, word [eax]
cmp ax, 0xd
je 0x418963
cmp ax, 0xa
jne 0x418969
add dword [ebp + 8], 2
jmp 0x418951
mov ecx, dword [edi]
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push dword [ebp - 4]
sub eax, ecx
mov ebx, esi
sub ebx, dword [ebp + 8]
sar eax, 1
push eax
sub esi, ecx
push edi
sar ebx, 1
sar esi, 1
call fcn.004182a4
mov eax, dword [edi]
lea eax, [eax + esi*2]
push eax
call fcn.0046176a
mov ecx, dword [edi]
add eax, esi
lea eax, [ecx + eax*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
lea eax, [ebx + ebx]
add esp, 0x18
sub ecx, eax
mov dword [ebp + 8], ecx
mov esi, 0x476d74
lea ecx, [ebp - 4]
call fcn.00424686
lea ecx, [ebp + 8]
call fcn.0040e58b
mov ebx, dword [ebp + 8]
cmp ebx, dword [ebp - 8]
jb 0x41886e
mov esi, 0x48b5d4
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
xor edi, edi
push edi
push 0x477ff4
call fcn.0040e8be
cmp eax, edi
je 0x418a07
push dword [eax]
lea ecx, [ebp - 0x78]
push 0x477f84
call fcn.00428e1b
push esi
mov dword [ebp - 0x40], edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push edi
lea ecx, [ebp - 0x78]
call fcn.0040e851
lea ecx, [ebp - 0x44]
call fcn.00424686
lea ecx, [ebp - 0xc]
call fcn.00424686
lea ecx, [ebp - 0x10]
call fcn.00424686
pop edi
pop esi
pop ebx
leave
ret