Function at 0x4586e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 3
add esp, 0xfffff004
push eax
dec eax
jne 0x4586e9
mov eax, dword [ebp - 4]
add esp, 0xfffff2dc
push ebx
push esi
push edi
mov byte [ebp - 0x11e], cl
mov byte [ebp - 0x11d], dl
mov ebx, eax
mov eax, 0x49ef30
call fcn.0048d8c4
push 0
cmp byte [0x4b099a], 0
je 0x458729
mov eax, 2
jmp 0x45872e
mov eax, 1
mov edx, 0x4b26bc
mov cl, byte [ebp - 0x11d]
call fcn.00475ac0
mov byte [ebp - 0x11f], al
call fcn.0044a49c
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x528]
push eax
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 0x11e], 0
jne 0x4587c5
mov edx, 0x49eb9e
mov eax, 0x49eb93
xor ecx, ecx
call fcn.004659f0
test eax, eax
je 0x4587c5
push 0x49ebaa
push 0x1000
lea ecx, [ebp - 0x2528]
mov edx, 0x49eba1
mov eax, 0x49eb93
call fcn.004658ac
cmp word [ebp - 0x2528], 0
je 0x4587c5
cmp dword [0x4b32c0], 0
je 0x4587c5
push 0
lea eax, [ebp - 0x2528]
mov cl, 1
mov edx, dword [0x4b32c0]
call fcn.0044ca48
mov al, byte [0x4b0e61]
mov byte [ebp - 0x125], al
mov byte [0x4b0e61], 0
cmp byte [ebp - 0x125], 0
je 0x458844
mov eax, 0x4b26bc
call fcn.0040b590
push eax
lea edx, [ebp - 0x2928]
push edx
call fcn.0048d424
add esp, 8
lea eax, [ebp - 0x2928]
xor edx, edx
call fcn.0040b8a4
mov edx, 0x49ebac
lea eax, [ebp - 0x2928]
call fcn.0040b9bc
test al, al
je 0x458828
lea eax, [ebp - 0x2928]
xor edx, edx
call fcn.0040b8a4
lea eax, [ebp - 0x2928]
xor ecx, ecx
xor edx, edx
call fcn.00409cac
lea eax, [ebp - 0x2928]
push eax
call fcn.0048ee28
pop ecx
mov word [ebp - 0x10c], 8
mov edx, dword [0x4b1274]
mov eax, dword [ebx + edx*4 + 0x104]
mov edx, dword [eax]
call dword [edx]
mov word [ebp - 0x10c], 0
jmp 0x458881
cmp byte [0x4b099a], 0
jne 0x458a8a
cmp dword [0x4b1a84], 0
je 0x458a8a
call fcn.0044a49c
cmp eax, dword [ebp - 0x124]
jne 0x458a8a
cmp dword [0x4bc1b0], 0
jne 0x458a8a
cmp dword [0x4bc1ac], 0
jne 0x458a8a
xor ebx, ebx
mov eax, dword [0x4b32bc]
call fcn.0040f26c
jmp 0x4588f0
push 0x49ebb0
lea edx, [ebp - 0x2d28]
push edx
call fcn.0048d3d8
add esp, 8
test eax, eax
jne 0x4588f0
mov bl, 1
jmp 0x458909
lea edx, [ebp - 0x2d28]
mov ecx, 0x400
mov eax, dword [0x4b32bc]
call fcn.0040f128
test al, al
jne 0x4588d4
test bl, bl
je 0x458952
cmp dword [0x4b1a84], 1
jne 0x458952
push 0x24
mov eax, 0x24e
call fcn.004117b8
push eax
mov eax, 0x578
call fcn.004117b8
push eax
cmp byte [ebp - 0x11f], 0
je 0x45893f
mov edx, dword [0x4b9824]
jmp 0x458945
mov edx, dword [0x4b9818]
push edx
call sub.USER32.DLL_MessageBoxA
cmp eax, 6
je 0x458952
xor ebx, ebx
mov word [ebp - 0x10c], 0x14
test bl, bl
je 0x458a67
mov word [ebp - 0x10c], 0x20
lea eax, [ebp - 0xf8]
call fcn.0040eedc
add dword [ebp - 0x100], 4
mov word [ebp - 0x10c], 0x2c
mov ecx, 0x4b2abc
mov edx, 0x4b26bc
lea eax, [ebp - 0xf8]
call fcn.0040f0ac
push 1
push 2
mov ecx, 0x4b2abc
mov edx, 0x4b26bc
mov eax, 0x4ba55c
call fcn.0045bc70
dec eax
jne 0x458a27
push 0x4b26bc
lea edx, [ebp - 0x3128]
push edx
call fcn.0048d424
add esp, 8
jmp 0x4589de
lea edx, [ebp - 0x3128]
lea eax, [ebp - 0xf8]
call fcn.0040f0a4
lea edx, [ebp - 0x3128]
mov eax, 0x4ba55c
call fcn.0045d688
test al, al
je 0x458a27
lea eax, [ebp - 0x3128]
xor edx, edx
call fcn.0040a0e0
test al, al
jne 0x4589cd
jmp 0x458a27
lea edx, [ebp - 0x3d28]
lea eax, [ebp - 0x3528]
call fcn.0040a50c
lea edx, [ebp - 0x3d28]
lea eax, [ebp - 0x3528]
call fcn.0040a914
push 0x400
lea ecx, [ebp - 0x3d28]
lea edx, [ebp - 0x3528]
lea eax, [ebp - 0xf8]
call fcn.0040f134
test al, al
jne 0x458a05
sub dword [ebp - 0x100], 4
lea eax, [ebp - 0xf8]
mov edx, 2
call fcn.0040eff8
mov word [ebp - 0x10c], 0x14
mov word [ebp - 0x10c], 0
jmp 0x458a8a
mov dl, byte [ebp - 0x125]
mov byte [0x4b0e61], dl
lea ecx, [ebp - 0x528]
push ecx
call fcn.0048ee28
pop ecx
cmp dword [0x4bc1a4], 0
jne 0x458ac0
cmp byte [ebp - 0x11f], 0
je 0x458ac0
push dword [0x4b9824]
call sub.USER32.DLL_DestroyWindow
mov eax, dword [ebp - 0x11c]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret