Function at 0x486bf0
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, 0x4ac714
mov eax, dword [esp]
cmp dword [eax + 0x30], 0
jne 0x486c56
cmp dword [0x4c7808], 1
jne 0x486c2e
mov ecx, 0x4bdcb8
mov edx, 0x4bd8b8
mov eax, dword [esp]
call fcn.0040fbfc
jmp 0x486c56
push 0x30
mov eax, 0x65
call fcn.004125d0
push eax
mov eax, 0x14c
call fcn.004125d0
push eax
push dword [0x4c4e64]
call sub.USER32.DLL_MessageBoxA
jmp 0x487043
push 0
lea edx, [edi + 4]
xor ecx, ecx
mov eax, 3
call fcn.00472a98
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 0x486f7a
lea eax, [esp + 0xc10]
call fcn.0040bd28
push eax
mov eax, 0x20c
call fcn.004125d0
push eax
lea edx, [esp + 0x1818]
push edx
call fcn.0049abd0
add esp, 0xc
lea eax, [esp + 0x1810]
call fcn.004748a0
call fcn.00473bd8
lea edx, [esp + 0x410]
push edx
call fcn.00499610
pop ecx
lea edx, [esp + 0x1010]
lea eax, [esp + 0xc10]
call fcn.0040ab60
call fcn.0040a8a4
test al, al
jne 0x486f7a
inc dword [esp + 4]
lea ecx, [esp + 0xc]
lea edx, [esp + 0xc10]
mov eax, 0x4c4e78
call fcn.0045bc00
test al, al
jne 0x486fa7
test esi, esi
je 0x486d2d
lea eax, [edi + 4]
call fcn.004749b0
lea eax, [esp + 0xc10]
call fcn.0040bd28
call fcn.004749b0
mov eax, 0x264
call fcn.004125d0
call fcn.004749b0
call fcn.00449558
xor ebx, ebx
push 1
push 0
lea ecx, [esp + 0x1018]
lea edx, [esp + 0xc18]
mov eax, 0x4c5bc4
call fcn.00455fa0
dec eax
je 0x486dfe
mov bl, 1
lea eax, [esp + 0x1e20]
push eax
push 0
push 0
push 1
lea edx, [esp + 0xc20]
mov eax, 0x4c5bc4
xor ecx, ecx
call fcn.00457674
mov edx, dword [esp + 0x1e20]
sub edx, 1
jb 0x486daa
je 0x486dc3
jmp 0x486ddc
lea eax, [edi + 0xa10]
push eax
lea edx, [esp + 0x1e14]
push edx
call fcn.00497c80
add esp, 8
jmp 0x486e0f
lea ecx, [edi + 0xa14]
push ecx
lea eax, [esp + 0x1e14]
push eax
call fcn.00497c80
add esp, 8
jmp 0x486e0f
xor edx, edx
mov dword [esp + 0x1e20], edx
lea ecx, [edi + 0xa18]
push ecx
lea eax, [esp + 0x1e14]
push eax
call fcn.00497c80
add esp, 8
jmp 0x486e0f
lea edx, [esp + 0x1e10]
mov eax, 0x4c5bc4
call fcn.004575cc
lea edx, [esp + 0x1e10]
push edx
lea ecx, [edi + 0xa1c]
push ecx
lea eax, [esp + 0x1818]
push eax
call fcn.0049abd0
add esp, 0xc
lea eax, [esp + 0x1810]
call fcn.004749b0
mov eax, dword [esp + 0x1e20]
test eax, eax
je 0x486e60
dec eax
je 0x486e60
mov eax, 0x266
call fcn.004125d0
call fcn.004749b0
inc dword [esp + 8]
jmp 0x486f7a
lea eax, [edi + 4]
call fcn.004749b0
mov edx, 0x4bd8b8
lea eax, [esp + 0xc10]
call fcn.0040abcc
mov edx, 0x4bdcb8
lea eax, [esp + 0x1010]
call fcn.0040ac14
mov edx, dword [esp + 0x1e20]
test bl, bl
mov dword [0x4bc468], edx
jne 0x486e9f
test esi, esi
jne 0x486ee0
lea ecx, [esp + 0xc10]
lea eax, [edi + 0xa24]
push ecx
push 0x482356
push dword [0x4c4e70]
push eax
push dword [0x4b2148]
call sub.USER32.DLL_DialogBoxParamA
test eax, eax
je 0x486fa7
lea edx, [esp + 0x810]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
jmp 0x486eee
lea ecx, [esp + 0x810]
push ecx
call fcn.00499610
pop ecx
lea eax, [esp + 0x810]
push eax
push 0x4b99c8
call fcn.00497c80
add esp, 8
call fcn.00473bd8
mov eax, 0x4c5bc4
call fcn.0045311c
lea edx, [edi + 0xa2e]
push edx
lea ecx, [esp + 0x14]
push ecx
call fcn.00497c80
add esp, 8
mov eax, 0x4bd8b8
call fcn.0040bd28
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00497ba4
add esp, 8
xor edx, edx
lea eax, [esp + 0x10]
call fcn.0040a72c
test al, al
jne 0x486f79
lea ecx, [edi + 0xa35]
push ecx
lea eax, [esp + 0x14]
push eax
call fcn.00497c80
add esp, 8
mov eax, 0x4bd8b8
call fcn.0040bd28
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00497ba4
add esp, 8
inc esi
push 0x400
lea ecx, [esp + 0x1014]
lea edx, [esp + 0xc14]
mov eax, dword [esp + 4]
call fcn.0040fc84
test al, al
je 0x486fa7
cmp dword [0x4c7814], 0
je 0x486c99
test esi, esi
jne 0x486fbd
cmp dword [esp + 8], 0
jne 0x486fbd
push dword [0x4c4e70]
call sub.USER32.DLL_DestroyWindow
cmp dword [esp + 4], 0
jne 0x486fe7
push 0x30
mov eax, 0x65
call fcn.004125d0
push eax
mov eax, 0x14c
call fcn.004125d0
push eax
push dword [0x4c4e64]
call sub.USER32.DLL_MessageBoxA
cmp dword [0x4c4e70], 0
je 0x487019
cmp dword [0x4c7814], 0
je 0x487005
mov eax, 0x271
call fcn.004125d0
jmp 0x48700f
mov eax, 0x270
call fcn.004125d0
call fcn.004749b0
call fcn.00474a48
cmp dword [0x4c7804], 0
jne 0x487043
lea eax, [esp + 0x10]
xor edx, edx
call fcn.0040a72c
test al, al
je 0x487037
lea edx, [esp + 0x10]
jmp 0x487039
xor edx, edx
mov eax, 0x4c4e78
call fcn.00458864
add esp, 0x1eac
pop edi
pop esi
pop ebx
ret