Function at 0x486ba4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff004
push eax
add esp, 0xfffff154
mov dword [esp], eax
mov edi, 0x4ac6d4
mov eax, dword [esp]
cmp dword [eax + 0x30], 0
jne 0x486c0a
cmp dword [0x4c77c8], 1
jne 0x486be2
mov ecx, 0x4bdc78
mov edx, 0x4bd878
mov eax, dword [esp]
call fcn.0040fbe0
jmp 0x486c0a
push 0x30
mov eax, 0x65
call fcn.004125b4
push eax
mov eax, 0x14c
call fcn.004125b4
push eax
push dword [0x4c4e24]
call sub.USER32.DLL_MessageBoxA
jmp 0x486ff7
push 0
lea edx, [edi + 4]
xor ecx, ecx
mov eax, 3
call fcn.00472a48
mov byte [esp + 0x10], 0
lea edx, [esp + 0x410]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov byte [esp + 0x810], 0
xor esi, esi
xor eax, eax
mov dword [esp + 4], eax
xor edx, edx
mov dword [esp + 8], edx
jmp 0x486f2e
lea eax, [esp + 0xc10]
call fcn.0040bd0c
push eax
mov eax, 0x20c
call fcn.004125b4
push eax
lea edx, [esp + 0x1818]
push edx
call fcn.0049abc0
add esp, 0xc
lea eax, [esp + 0x1810]
call fcn.00474850
call fcn.00473b88
lea edx, [esp + 0x410]
push edx
call fcn.004995f4
pop ecx
lea edx, [esp + 0x1010]
lea eax, [esp + 0xc10]
call fcn.0040ab44
call fcn.0040a888
test al, al
jne 0x486f2e
inc dword [esp + 4]
lea ecx, [esp + 0xc]
lea edx, [esp + 0xc10]
mov eax, 0x4c4e38
call fcn.0045bbd0
test al, al
jne 0x486f5b
test esi, esi
je 0x486ce1
lea eax, [edi + 4]
call fcn.00474960
lea eax, [esp + 0xc10]
call fcn.0040bd0c
call fcn.00474960
mov eax, 0x264
call fcn.004125b4
call fcn.00474960
call fcn.00449528
xor ebx, ebx
push 1
push 0
lea ecx, [esp + 0x1018]
lea edx, [esp + 0xc18]
mov eax, 0x4c5b84
call fcn.00455f70
dec eax
je 0x486db2
mov bl, 1
lea eax, [esp + 0x1e20]
push eax
push 0
push 0
push 1
lea edx, [esp + 0xc20]
mov eax, 0x4c5b84
xor ecx, ecx
call fcn.00457644
mov edx, dword [esp + 0x1e20]
sub edx, 1
jb 0x486d5e
je 0x486d77
jmp 0x486d90
lea eax, [edi + 0xa10]
push eax
lea edx, [esp + 0x1e14]
push edx
call fcn.00497c60
add esp, 8
jmp 0x486dc3
lea ecx, [edi + 0xa14]
push ecx
lea eax, [esp + 0x1e14]
push eax
call fcn.00497c60
add esp, 8
jmp 0x486dc3
xor edx, edx
mov dword [esp + 0x1e20], edx
lea ecx, [edi + 0xa18]
push ecx
lea eax, [esp + 0x1e14]
push eax
call fcn.00497c60
add esp, 8
jmp 0x486dc3
lea edx, [esp + 0x1e10]
mov eax, 0x4c5b84
call fcn.0045759c
lea edx, [esp + 0x1e10]
push edx
lea ecx, [edi + 0xa1c]
push ecx
lea eax, [esp + 0x1818]
push eax
call fcn.0049abc0
add esp, 0xc
lea eax, [esp + 0x1810]
call fcn.00474960
mov eax, dword [esp + 0x1e20]
test eax, eax
je 0x486e14
dec eax
je 0x486e14
mov eax, 0x266
call fcn.004125b4
call fcn.00474960
inc dword [esp + 8]
jmp 0x486f2e
lea eax, [edi + 4]
call fcn.00474960
mov edx, 0x4bd878
lea eax, [esp + 0xc10]
call fcn.0040abb0
mov edx, 0x4bdc78
lea eax, [esp + 0x1010]
call fcn.0040abf8
mov edx, dword [esp + 0x1e20]
test bl, bl
mov dword [0x4bc428], edx
jne 0x486e53
test esi, esi
jne 0x486e94
lea ecx, [esp + 0xc10]
lea eax, [edi + 0xa24]
push ecx
push 0x482306
push dword [0x4c4e30]
push eax
push dword [0x4b2108]
call sub.USER32.DLL_DialogBoxParamA
test eax, eax
je 0x486f5b
lea edx, [esp + 0x810]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
jmp 0x486ea2
lea ecx, [esp + 0x810]
push ecx
call fcn.004995f4
pop ecx
lea eax, [esp + 0x810]
push eax
push 0x4b9988
call fcn.00497c60
add esp, 8
call fcn.00473b88
mov eax, 0x4c5b84
call fcn.004530ec
lea edx, [edi + 0xa2e]
push edx
lea ecx, [esp + 0x14]
push ecx
call fcn.00497c60
add esp, 8
mov eax, 0x4bd878
call fcn.0040bd0c
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00497b84
add esp, 8
xor edx, edx
lea eax, [esp + 0x10]
call fcn.0040a710
test al, al
jne 0x486f2d
lea ecx, [edi + 0xa35]
push ecx
lea eax, [esp + 0x14]
push eax
call fcn.00497c60
add esp, 8
mov eax, 0x4bd878
call fcn.0040bd0c
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00497b84
add esp, 8
inc esi
push 0x400
lea ecx, [esp + 0x1014]
lea edx, [esp + 0xc14]
mov eax, dword [esp + 4]
call fcn.0040fc68
test al, al
je 0x486f5b
cmp dword [0x4c77d4], 0
je 0x486c4d
test esi, esi
jne 0x486f71
cmp dword [esp + 8], 0
jne 0x486f71
push dword [0x4c4e30]
call sub.USER32.DLL_DestroyWindow
cmp dword [esp + 4], 0
jne 0x486f9b
push 0x30
mov eax, 0x65
call fcn.004125b4
push eax
mov eax, 0x14c
call fcn.004125b4
push eax
push dword [0x4c4e24]
call sub.USER32.DLL_MessageBoxA
cmp dword [0x4c4e30], 0
je 0x486fcd
cmp dword [0x4c77d4], 0
je 0x486fb9
mov eax, 0x271
call fcn.004125b4
jmp 0x486fc3
mov eax, 0x270
call fcn.004125b4
call fcn.00474960
call fcn.004749f8
cmp dword [0x4c77c4], 0
jne 0x486ff7
lea eax, [esp + 0x10]
xor edx, edx
call fcn.0040a710
test al, al
je 0x486feb
lea edx, [esp + 0x10]
jmp 0x486fed
xor edx, edx
mov eax, 0x4c4e38
call fcn.00458834
add esp, 0x1eac
pop edi
pop esi
pop ebx
ret