Function at 0x459630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x6554d0]
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.00459530
add esp, 4
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0
je 0x4596a5
mov ecx, dword [ebp - 0x30c]
push ecx
call fcn.00459630
add esp, 4
test eax, eax
je 0x459690
mov edx, dword [ebp + 8]
mov dword [ebp - 0x318], edx
jmp 0x45969a
mov dword [ebp - 0x318], 0
mov eax, dword [ebp - 0x318]
jmp 0x459986
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0
je 0x4596c3
cmp dword [ebp - 0x30c], str.ERROR
jne 0x4596cb
mov eax, dword [ebp + 8]
jmp 0x459986
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
je 0x45970f
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 + 0x5ac440]
cmp eax, ecx
je 0x459707
mov edx, dword [ebp + 8]
push edx
call fcn.0045a390
add esp, 4
test eax, eax
je 0x45970f
mov eax, dword [ebp + 8]
jmp 0x459986
mov eax, dword [ebp + 8]
push eax
call fcn.0045a770
add esp, 4
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0
je 0x459737
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
mov byte [ebp - 0x305], dl
jmp 0x459747
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 0x4598f1
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x30c]
movsx edx, byte [ecx + eax]
cmp edx, 0x2f
je 0x4598f1
movsx eax, byte [ebp - 0x305]
test eax, eax
jne 0x4597c6
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.00485230
add esp, 8
push eax
call fcn.0045a8f0
add esp, 4
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x320], 1
jmp 0x45981a
movsx eax, byte [ebp - 0x305]
test eax, eax
je 0x4597e0
movsx ecx, byte [ebp - 0x305]
mov dword [ebp - 0x31c], ecx
jmp 0x4597ee
call fcn.00527c5b
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 + 0x65ece1]
sub ecx, 0x40
push ecx
call fcn.00528772
add esp, 0xc
mov dword [ebp - 0x310], eax
cmp dword [ebp - 0x310], 0
jne 0x459863
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 0x459857
push 0x5ac444
lea eax, [ebp - 0x103]
push eax
call fcn.00513440
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.004025c0
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call fcn.00513540
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.004025c0
add esp, 0xc
push 0x100
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004025c0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045a770
add esp, 4
test eax, eax
jne 0x459962
call fcn.00527c5b
add eax, 0x40
je 0x459962
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.004025c0
add esp, 0xc
push 0x100
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004025c0
add esp, 0xc
cmp dword [ebp - 0x320], 0
je 0x45997a
mov ecx, dword [ebp - 0x310]
push ecx
call fcn.0051f0d0
add esp, 4
mov edx, dword [ebp + 8]
push edx
call fcn.0045b170
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ce40
mov esp, ebp
pop ebp
ret