Function at 0x459520
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x6552e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x220], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00459420
add esp, 4
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x459595
mov ecx, dword [ebp - 0x20c]
push ecx
call fcn.00459520
add esp, 4
test eax, eax
je 0x459580
mov edx, dword [ebp + 8]
mov dword [ebp - 0x218], edx
jmp 0x45958a
mov dword [ebp - 0x218], 0
mov eax, dword [ebp - 0x218]
jmp 0x459874
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x4595b3
cmp dword [ebp - 0x20c], str.ERROR
jne 0x4595bb
mov eax, dword [ebp + 8]
jmp 0x459874
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
je 0x4595ff
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
mov ecx, 1
imul edx, ecx, 0
movsx ecx, byte [edx + 0x5ac3b0]
cmp eax, ecx
je 0x4595f7
mov edx, dword [ebp + 8]
push edx
call fcn.0045a280
add esp, 4
test eax, eax
je 0x4595ff
mov eax, dword [ebp + 8]
jmp 0x459874
mov eax, dword [ebp + 8]
push eax
call fcn.0045a660
add esp, 4
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x459627
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
mov byte [ebp - 0x205], dl
jmp 0x459637
mov byte [ebp - 0x205], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20c], eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x20c]
movsx ecx, byte [eax + edx]
cmp ecx, 0x5c
je 0x4597df
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x20c]
movsx edx, byte [ecx + eax]
cmp edx, 0x2f
je 0x4597df
movsx eax, byte [ebp - 0x205]
test eax, eax
jne 0x4596b4
lea ecx, [ebp - 0x204]
push ecx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebp - 0x204]
push edx
call fcn.00403310
add esp, 4
push eax
call fcn.0045a7e0
add esp, 4
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x220], 1
jmp 0x459708
movsx eax, byte [ebp - 0x205]
test eax, eax
je 0x4596ce
movsx ecx, byte [ebp - 0x205]
mov dword [ebp - 0x21c], ecx
jmp 0x4596dc
call fcn.00527c5b
add eax, 0x40
mov dword [ebp - 0x21c], eax
push 0x100
lea edx, [ebp - 0x104]
push edx
movzx eax, byte [ebp - 0x21c]
movsx ecx, byte [eax + 0x65eb01]
sub ecx, 0x40
push ecx
call fcn.00528772
add esp, 0xc
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x459751
mov edx, 1
imul eax, edx, 0
mov cl, byte [ebp - 0x205]
mov byte [ebp + eax - 0x104], cl
movsx edx, byte [ebp - 0x205]
test edx, edx
je 0x459745
push 0x5ac3b4
lea eax, [ebp - 0x103]
push eax
call fcn.00513440
add esp, 8
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x210], ecx
push 0x100
mov edx, dword [ebp - 0x210]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.004025b0
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call fcn.00513540
add esp, 4
mov dword [ebp - 0x214], eax
mov edx, dword [ebp - 0x214]
mov byte [ebp + edx - 0x104], 0x2f
mov eax, dword [ebp - 0x214]
add eax, 1
mov dword [ebp - 0x214], eax
mov ecx, 0x100
sub ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [ebp - 0x20c]
push edx
mov eax, dword [ebp - 0x214]
lea ecx, [ebp + eax - 0x104]
push ecx
call fcn.004025b0
add esp, 0xc
push 0x100
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004025b0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045a660
add esp, 4
test eax, eax
jne 0x459850
call fcn.00527c5b
add eax, 0x40
je 0x459850
call fcn.00527c5b
add eax, 0x40
mov edx, 1
imul ecx, edx, 0
mov byte [ebp + ecx - 0x104], al
mov edx, 1
shl edx, 0
mov byte [ebp + edx - 0x104], 0x3a
push 0xfe
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x102]
push ecx
call fcn.004025b0
add esp, 0xc
push 0x100
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004025b0
add esp, 0xc
cmp dword [ebp - 0x220], 0
je 0x459868
mov ecx, dword [ebp - 0x210]
push ecx
call fcn.0051f0d0
add esp, 4
mov edx, dword [ebp + 8]
push edx
call fcn.0045b060
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ce40
mov esp, ebp
pop ebp
ret