Function at 0x4637f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x20], eax
push esi
mov dword [ebp - 0x12c], ecx
mov ecx, dword [ebp + 8]
call fcn.0044fcb0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x463822
xor eax, eax
jmp 0x463a95
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x12c]
call fcn.00463ae0
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x12c]
add ecx, 0x18
call fcn.00463ab0
call fcn.004039b0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0
jmp 0x46385d
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jge 0x463a90
push 0x18
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x12c]
call fcn.00457c40
push eax
call fcn.0053c870
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x12c]
call fcn.00457c40
mov dword [eax + 8], 0xffffffff
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.004560f0
mov ecx, eax
call fcn.00406410
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 2]
cmp edx, 0x3a
je 0x4638cd
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 2]
cmp ecx, 0x5c
jne 0x46396b
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x4638e5
mov dword [ebp - 0x130], 0
jmp 0x463946
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3fffffff
jle 0x46390a
mov dword [ebp - 0x134], 0
jmp 0x46393a
mov eax, dword [ebp - 4]
shl eax, 1
call fcn.0053fdd0
mov dword [ebp - 0x138], esp
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
shl edx, 1
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.00403260
mov dword [ebp - 0x134], eax
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x12c]
add ecx, 0x18
call fcn.0041cd70
mov ecx, eax
call fcn.0041b5b0
jmp 0x463a2a
lea edx, [ebp - 0x128]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x463995
mov dword [ebp - 0x13c], 0
jmp 0x4639f6
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3fffffff
jle 0x4639ba
mov dword [ebp - 0x140], 0
jmp 0x4639ea
mov eax, dword [ebp - 4]
shl eax, 1
call fcn.0053fdd0
mov dword [ebp - 0x144], esp
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
shl eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call fcn.00403260
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x12c]
add ecx, 0x18
call fcn.0041cd70
mov ecx, eax
call fcn.0041b5b0
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x12c]
add ecx, 0x18
call fcn.0041cd70
mov ecx, eax
call fcn.00403810
mov esi, eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x12c]
call fcn.00457c40
mov dword [eax + 0xc], esi
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x12c]
add ecx, 0x18
call fcn.0041cd70
mov ecx, eax
call fcn.00403810
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov esi, eax
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x12c]
call fcn.00457c40
mov dword [eax + 0x10], esi
jmp 0x463854
mov eax, 1
lea esp, [ebp - 0x148]
pop esi
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret 4