Function at 0x598580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69e135
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x7933bc]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], ecx
xor eax, eax
cmp dword [ebp + 8], 0
setne al
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
jne 0x5985dd
push 0xff
push 0x70d454
call fcn.004e0811
test eax, eax
je 0x5985dd
int3
cmp dword [ebp - 0x238], 0
jne 0x5985eb
call fcn.004de7c8
xor edx, edx
jne 0x5985b1
mov eax, dword [ebp - 0x264]
cmp dword [eax + 8], 0
jne 0x59860f
push 0x100
push 0x70d48c
call fcn.004e0811
test eax, eax
je 0x59860f
int3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x264]
add ecx, 0x1c
call fcn.004dd37d
movzx ecx, al
test ecx, ecx
je 0x59864e
cmp dword [ebp - 0x18], 0
je 0x59864e
push 0
mov edx, dword [ebp - 0x264]
add edx, 0x1c
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.004e3a16
mov edx, dword [ebp - 0x264]
mov ecx, dword [edx + 8]
call fcn.004dd37d
movzx eax, al
test eax, eax
je 0x5986a7
mov ecx, dword [ebp - 0x264]
add ecx, 0x1c
call fcn.004dd37d
movzx ecx, al
test ecx, ecx
jne 0x598694
mov ecx, dword [ebp - 0x264]
add ecx, 0x1c
call fcn.004db56e
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0xc]
call edx
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx]
call eax
jmp 0x598a7b
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc], 0
jne 0x5986b5
jmp 0x598a7b
mov dword [ebp - 0x1c], 0
jmp 0x5986c7
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 4]
jge 0x5986ee
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
add eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
call fcn.004e4ba5
jmp 0x5986be
lea edx, [ebp - 0x22c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x598712
cmp dword [ebp - 0x10], 0x104
jb 0x598717
jmp 0x598a7b
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jge 0x598747
push 0x11c
push 0x70d4c4
call fcn.004e0811
test eax, eax
je 0x598747
int3
mov edx, dword [ebp - 0x234]
mov word [ebp + edx*2 - 0x22c], 0x5c
mov eax, dword [ebp - 0x234]
add eax, 1
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
mov word [ebp + ecx*2 - 0x22c], 0
lea ecx, [ebp - 0x230]
call fcn.004e147d
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004e147d
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0
jmp 0x5987a6
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 4]
jge 0x598a33
push 1
mov edx, dword [ebp - 0x234]
push edx
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x264]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x264]
mov eax, dword [edx + 8]
call eax
test eax, eax
jne 0x5987ef
jmp 0x598a33
lea ecx, [ebp - 0x230]
call fcn.004db56e
mov dword [ebp - 0x254], eax
lea ecx, [ebp - 0x230]
call fcn.004de660
shl eax, 1
push eax
lea ecx, [ebp - 0x14]
call fcn.004e58d4
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x254]
movzx edx, word [ecx]
test edx, edx
je 0x5988be
mov eax, dword [ebp - 0x254]
movzx ecx, word [eax]
cmp ecx, 0x26
jne 0x598855
mov edx, dword [ebp - 0x258]
mov word [edx], 0x26
mov eax, dword [ebp - 0x258]
add eax, 2
mov dword [ebp - 0x258], eax
xor ecx, ecx
je 0x598889
mov edx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x254]
mov cx, word [eax]
mov word [edx], cx
mov edx, dword [ebp - 0x258]
add edx, 2
mov dword [ebp - 0x258], edx
mov eax, dword [ebp - 0x254]
add eax, 2
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x258]
mov edx, dword [ebp - 0x254]
mov ax, word [edx]
mov word [ecx], ax
mov ecx, dword [ebp - 0x258]
add ecx, 2
mov dword [ebp - 0x258], ecx
mov edx, dword [ebp - 0x254]
add edx, 2
mov dword [ebp - 0x254], edx
jmp 0x59881c
mov eax, dword [ebp - 0x258]
mov word [eax], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004debe2
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0x1c]
lea eax, [eax + edx + 1]
xor edx, edx
mov ecx, 0x10
div ecx
mov dword [ebp - 0x23c], edx
cmp dword [ebp - 0x23c], 0xa
jle 0x59891a
mov edx, dword [ebp - 0x23c]
push edx
push 0x70d4fc
push 0xa
lea eax, [ebp - 0x250]
push eax
call fcn.004e3d3b
add esp, 0x10
jmp 0x598958
cmp dword [ebp - 0x23c], 0xa
jne 0x59893b
push str.10
push 0xa
lea ecx, [ebp - 0x250]
push ecx
call fcn.004e1158
add esp, 0xc
jmp 0x598958
mov edx, dword [ebp - 0x23c]
push edx
push 0x70d510
push 0xa
lea eax, [ebp - 0x250]
push eax
call fcn.004e3d3b
add esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x268], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x26c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x25c]
call fcn.004e371e
mov dword [ebp - 0x270], eax
mov ecx, dword [ebp - 0x270]
mov dword [ebp - 0x274], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x274]
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.004db749
add esp, 0xc
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp - 0x278]
mov dword [ebp - 0x27c], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x27c]
call fcn.004db56e
push eax
mov edx, dword [ebp - 0x268]
push edx
push 0x400
mov eax, dword [ebp - 0x26c]
push eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
call fcn.004e0e6a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x260]
call fcn.004dfd17
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
call fcn.004dfd17
jmp 0x59879d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
sub eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
call fcn.004e58f7
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004dfd17
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004dfd17
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004e2bca
mov esp, ebp
pop ebp
ret 4