Function at 0x459710
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x659780]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x310], 0
mov dword [ebp - 0x320], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00459610
add esp, 4
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0
je 0x459785
mov ecx, dword [ebp - 0x30c]
push ecx
call fcn.00459710
add esp, 4
test eax, eax
je 0x459770
mov edx, dword [ebp + 8]
mov dword [ebp - 0x318], edx
jmp 0x45977a
mov dword [ebp - 0x318], 0
mov eax, dword [ebp - 0x318]
jmp 0x459a66
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0
je 0x4597a3
cmp dword [ebp - 0x30c], str.ERROR
jne 0x4597ab
mov eax, dword [ebp + 8]
jmp 0x459a66
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
je 0x4597ef
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 + 0x5b05bc]
cmp eax, ecx
je 0x4597e7
mov edx, dword [ebp + 8]
push edx
call fcn.0045a470
add esp, 4
test eax, eax
je 0x4597ef
mov eax, dword [ebp + 8]
jmp 0x459a66
mov eax, dword [ebp + 8]
push eax
call fcn.0045a850
add esp, 4
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0
je 0x459817
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
mov byte [ebp - 0x305], dl
jmp 0x459827
mov byte [ebp - 0x305], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30c], eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x30c]
movsx ecx, byte [eax + edx]
cmp ecx, 0x5c
je 0x4599d1
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x30c]
movsx edx, byte [ecx + eax]
cmp edx, 0x2f
je 0x4599d1
movsx eax, byte [ebp - 0x305]
test eax, eax
jne 0x4598a6
lea ecx, [ebp - 0x304]
push ecx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea edx, [ebp - 0x304]
push edx
call fcn.00485550
add esp, 8
push eax
call fcn.0045a9d0
add esp, 4
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x320], 1
jmp 0x4598fa
movsx eax, byte [ebp - 0x305]
test eax, eax
je 0x4598c0
movsx ecx, byte [ebp - 0x305]
mov dword [ebp - 0x31c], ecx
jmp 0x4598ce
call fcn.0052812b
add eax, 0x40
mov dword [ebp - 0x31c], eax
push 0x100
lea edx, [ebp - 0x104]
push edx
movzx eax, byte [ebp - 0x31c]
movsx ecx, byte [eax + 0x663001]
sub ecx, 0x40
push ecx
call fcn.00528c42
add esp, 0xc
mov dword [ebp - 0x310], eax
cmp dword [ebp - 0x310], 0
jne 0x459943
mov edx, 1
imul eax, edx, 0
mov cl, byte [ebp - 0x305]
mov byte [ebp + eax - 0x104], cl
movsx edx, byte [ebp - 0x305]
test edx, edx
je 0x459937
push 0x5b05c0
lea eax, [ebp - 0x103]
push eax
call fcn.005138f0
add esp, 8
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x310], ecx
push 0x100
mov edx, dword [ebp - 0x310]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.004025b0
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call fcn.005139f0
add esp, 4
mov dword [ebp - 0x314], eax
mov edx, dword [ebp - 0x314]
mov byte [ebp + edx - 0x104], 0x2f
mov eax, dword [ebp - 0x314]
add eax, 1
mov dword [ebp - 0x314], eax
mov ecx, 0x100
sub ecx, dword [ebp - 0x314]
push ecx
mov edx, dword [ebp - 0x30c]
push edx
mov eax, dword [ebp - 0x314]
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.0045a850
add esp, 4
test eax, eax
jne 0x459a42
call fcn.0052812b
add eax, 0x40
je 0x459a42
call fcn.0052812b
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 - 0x320], 0
je 0x459a5a
mov ecx, dword [ebp - 0x310]
push ecx
call fcn.0051f5a0
add esp, 4
mov edx, dword [ebp + 8]
push edx
call fcn.0045b250
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050d210
mov esp, ebp
pop ebp
ret