Function at 0x598510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72bafa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
mov dword [ebp - 0x94], 0
lea eax, [ebp - 0x9d]
mov dword [ebp - 0x9c], eax
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.0040b0a0
mov dword [ebp - 4], 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x59871a
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.005a0430
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jbe 0x5986f6
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x10]
ja 0x5986f6
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x44], ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.005a6110
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xb0]
sub edx, 1
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xb4]
cmp eax, dword [ebp - 0x18]
jbe 0x5985fb
call fcn.00563a37
xor ecx, ecx
jne 0x5985fb
cmp dword [ebp - 0x14], 0x10
jb 0x598610
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x114], edx
jmp 0x598619
lea eax, [ebp - 0x28]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
add ecx, dword [ebp - 0xb4]
movsx edx, byte [ecx]
cmp edx, 0x5c
je 0x59868a
mov dword [ebp - 0x118], 0x7529d0
mov eax, dword [ebp - 0x118]
add eax, 1
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x118]
mov dl, byte [ecx]
mov byte [ebp - 0x11d], dl
add dword [ebp - 0x118], 1
cmp byte [ebp - 0x11d], 0
jne 0x598646
mov eax, dword [ebp - 0x118]
sub eax, dword [ebp - 0x11c]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
push ecx
push 0x7529d0
lea ecx, [ebp - 0x2c]
call fcn.004472f0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040b0a0
mov edx, dword [0x7c2410]
push edx
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040aed0
mov ecx, dword [ebp - 0x94]
or ecx, 1
mov dword [ebp - 0x94], ecx
mov byte [ebp - 4], 1
movzx edx, byte [ebp - 0x34]
test edx, edx
je 0x5986de
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.00563af8
add esp, 4
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040b0a0
mov eax, dword [ebp + 8]
jmp 0x5987db
mov byte [ebp - 4], 1
movzx edx, byte [ebp - 0x34]
test edx, edx
je 0x59871a
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
push ecx
call fcn.00563af8
add esp, 4
lea edx, [ebp - 0xd5]
mov dword [ebp - 0xd4], edx
push 0
push 0
lea ecx, [ebp - 0x90]
call fcn.0040b0a0
mov dword [ebp - 0x128], str.Cannot_get_current_directory
mov eax, dword [ebp - 0x128]
add eax, 1
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x128]
mov dl, byte [ecx]
mov byte [ebp - 0x12d], dl
add dword [ebp - 0x128], 1
cmp byte [ebp - 0x12d], 0
jne 0x59874e
mov eax, dword [ebp - 0x128]
sub eax, dword [ebp - 0x12c]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
push ecx
push str.Cannot_get_current_directory
lea ecx, [ebp - 0x90]
call fcn.0040a9d0
mov byte [ebp - 4], 3
push 0
lea edx, [ebp - 0x90]
push edx
lea ecx, [ebp - 0x74]
call fcn.00593a10
push 0x7dab3c
lea eax, [ebp - 0x74]
push eax
call fcn.00563aac
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x90]
call fcn.0040b0a0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040b0a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret