Function at 0x458638
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 3
add esp, 0xfffff004
push eax
dec eax
jne 0x458641
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, 0x49efa4
call fcn.0048dbf8
push 0
cmp byte [0x4b09a2], 0
je 0x458681
mov eax, 2
jmp 0x458686
mov eax, 1
mov edx, 0x4b26c4
mov cl, byte [ebp - 0x11d]
call fcn.00475d6c
mov byte [ebp - 0x11f], al
call fcn.0044a3d0
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x528]
push eax
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 0x11e], 0
jne 0x45871d
mov edx, 0x49ec12
mov eax, 0x49ec07
xor ecx, ecx
call fcn.004659b8
test eax, eax
je 0x45871d
push 0x49ec1e
push 0x1000
lea ecx, [ebp - 0x2528]
mov edx, 0x49ec15
mov eax, 0x49ec07
call fcn.00465874
cmp word [ebp - 0x2528], 0
je 0x45871d
cmp dword [0x4b32c8], 0
je 0x45871d
push 0
lea eax, [ebp - 0x2528]
mov cl, 1
mov edx, dword [0x4b32c8]
call fcn.0044c97c
mov al, byte [0x4b0e69]
mov byte [ebp - 0x125], al
mov byte [0x4b0e69], 0
cmp byte [ebp - 0x125], 0
je 0x45879c
mov eax, 0x4b26c4
call fcn.0040b578
push eax
lea edx, [ebp - 0x2928]
push edx
call fcn.0048d758
add esp, 8
lea eax, [ebp - 0x2928]
xor edx, edx
call fcn.0040b88c
mov edx, 0x49ec20
lea eax, [ebp - 0x2928]
call fcn.0040b9a4
test al, al
je 0x458780
lea eax, [ebp - 0x2928]
xor edx, edx
call fcn.0040b88c
lea eax, [ebp - 0x2928]
xor ecx, ecx
xor edx, edx
call fcn.00409c94
lea eax, [ebp - 0x2928]
push eax
call fcn.0048f15c
pop ecx
mov word [ebp - 0x10c], 8
mov edx, dword [0x4b127c]
mov eax, dword [ebx + edx*4 + 0x104]
mov edx, dword [eax]
call dword [edx]
mov word [ebp - 0x10c], 0
jmp 0x4587d9
cmp byte [0x4b09a2], 0
jne 0x4589e2
cmp dword [0x4b1a8c], 0
je 0x4589e2
call fcn.0044a3d0
cmp eax, dword [ebp - 0x124]
jne 0x4589e2
cmp dword [0x4bc1b8], 0
jne 0x4589e2
cmp dword [0x4bc1b4], 0
jne 0x4589e2
xor ebx, ebx
mov eax, dword [0x4b32c4]
call fcn.0040f194
jmp 0x458848
push 0x49ec24
lea edx, [ebp - 0x2d28]
push edx
call fcn.0048d70c
add esp, 8
test eax, eax
jne 0x458848
mov bl, 1
jmp 0x458861
lea edx, [ebp - 0x2d28]
mov ecx, 0x400
mov eax, dword [0x4b32c4]
call fcn.0040f050
test al, al
jne 0x45882c
test bl, bl
je 0x4588aa
cmp dword [0x4b1a8c], 1
jne 0x4588aa
push 0x24
mov eax, 0x24e
call fcn.004116e0
push eax
mov eax, 0x578
call fcn.004116e0
push eax
cmp byte [ebp - 0x11f], 0
je 0x458897
mov edx, dword [0x4b982c]
jmp 0x45889d
mov edx, dword [0x4b9820]
push edx
call sub.USER32.DLL_MessageBoxA
cmp eax, 6
je 0x4588aa
xor ebx, ebx
mov word [ebp - 0x10c], 0x14
test bl, bl
je 0x4589bf
mov word [ebp - 0x10c], 0x20
lea eax, [ebp - 0xf8]
call fcn.0040ee04
add dword [ebp - 0x100], 4
mov word [ebp - 0x10c], 0x2c
mov ecx, 0x4b2ac4
mov edx, 0x4b26c4
lea eax, [ebp - 0xf8]
call fcn.0040efd4
push 1
push 2
mov ecx, 0x4b2ac4
mov edx, 0x4b26c4
mov eax, 0x4ba564
call fcn.0045bbc8
dec eax
jne 0x45897f
push 0x4b26c4
lea edx, [ebp - 0x3128]
push edx
call fcn.0048d758
add esp, 8
jmp 0x458936
lea edx, [ebp - 0x3128]
lea eax, [ebp - 0xf8]
call fcn.0040efcc
lea edx, [ebp - 0x3128]
mov eax, 0x4ba564
call fcn.0045d5e0
test al, al
je 0x45897f
lea eax, [ebp - 0x3128]
xor edx, edx
call fcn.0040a0c8
test al, al
jne 0x458925
jmp 0x45897f
lea edx, [ebp - 0x3d28]
lea eax, [ebp - 0x3528]
call fcn.0040a4f4
lea edx, [ebp - 0x3d28]
lea eax, [ebp - 0x3528]
call fcn.0040a8fc
push 0x400
lea ecx, [ebp - 0x3d28]
lea edx, [ebp - 0x3528]
lea eax, [ebp - 0xf8]
call fcn.0040f05c
test al, al
jne 0x45895d
sub dword [ebp - 0x100], 4
lea eax, [ebp - 0xf8]
mov edx, 2
call fcn.0040ef20
mov word [ebp - 0x10c], 0x14
mov word [ebp - 0x10c], 0
jmp 0x4589e2
mov dl, byte [ebp - 0x125]
mov byte [0x4b0e69], dl
lea ecx, [ebp - 0x528]
push ecx
call fcn.0048f15c
pop ecx
cmp dword [0x4bc1ac], 0
jne 0x458a18
cmp byte [ebp - 0x11f], 0
je 0x458a18
push dword [0x4b982c]
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