Function at 0x1005bee7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ddd2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push esi
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1005bf7a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
movzx eax, byte [eax]
test eax, eax
je 0x1005bf4f
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x54]
mov dword [ecx], eax
jmp 0x1005bf75
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
movzx eax, byte [eax]
test eax, eax
je 0x1005bf75
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x1005c353
lea eax, [ebp + 8]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
movzx eax, byte [eax]
test eax, eax
je 0x1005c0a9
mov dword [ebp - 0x48], 0x5d94
mov dword [ebp - 0x98], 0x1000dfd0
cmp dword [ebp - 0x48], 0x6049
jle 0x1005c056
and dword [ebp - 0x30], 0
jmp 0x1005bfbf
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x3c2
jge 0x1005c056
and dword [ebp - 0x20], 0
jmp 0x1005bfd9
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x7b9b
jge 0x1005c051
and dword [ebp - 0x18], 0
jmp 0x1005bfef
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x4612
jge 0x1005c04f
mov eax, dword [ebp - 0x30]
imul eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
shl eax, cl
cdq
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
push dword [ebp - 0x84]
push dword [ebp - 0x88]
lea ecx, [ebp - 0xcc]
call fcn.1001072e
pop ecx
pop ecx
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
call fcn.1001d53e
push eax
call fcn.10067b63
pop ecx
lea ecx, [ebp - 0xcc]
call fcn.1001d534
jmp 0x1005bfe8
jmp 0x1005bfd2
jmp 0x1005bfb8
mov byte [ebp - 0xd], 0
cmp dword [ebp - 0x48], 0x5aa9
jge 0x1005c06f
push dword [ebp - 0x98]
call fcn.10067b63
pop ecx
push 1
push 0x1916
push 0
lea eax, [ebp - 0xd]
push eax
push 0x3b26
push 0
push 0x4f87
push 0x79a
push 0x7f3f
push 0x4af8
push 0x78e0
call fcn.1004e4cb
add esp, 0x2c
jmp 0x1005c353
push 1
lea ecx, [ebp - 0x3c]
call fcn.1001d86d
and dword [ebp - 4], 0
mov dword [ebp - 0x68], 9
mov dword [ebp - 0x6c], 0x433b
mov dword [ebp - 0x7c], 0x1000e014
cmp dword [ebp - 0x6c], 0x4615
jle 0x1005c19a
and dword [ebp - 0x28], 0
jmp 0x1005c0e6
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x5d8
jge 0x1005c19a
and dword [ebp - 0x1c], 0
jmp 0x1005c100
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x4624
jge 0x1005c195
and dword [ebp - 0x24], 0
jmp 0x1005c11a
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x7f59
jge 0x1005c190
and dword [ebp - 0x2c], 0
jmp 0x1005c130
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x19f
jge 0x1005c18e
mov eax, dword [ebp - 0x28]
or eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
sar edx, cl
or eax, edx
cdq
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], edx
push dword [ebp - 0x90]
push dword [ebp - 0x94]
lea ecx, [ebp - 0xe4]
call fcn.1001072e
pop ecx
pop ecx
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
call fcn.1001d53e
push eax
call fcn.10067b63
pop ecx
lea ecx, [ebp - 0xe4]
call fcn.1001d534
jmp 0x1005c129
jmp 0x1005c113
jmp 0x1005c0f9
jmp 0x1005c0df
cmp dword [ebp - 0x6c], 0x4157
jge 0x1005c1ac
push dword [ebp - 0x7c]
call fcn.10067b63
pop ecx
lea eax, [ebp - 0x14]
push eax
push 1
push 1
push 0x4f84
push 0x351a
push 0x74b2
push 0x3735
push 0x3c1e
push 0x75c9
push 1
push 0x1c8
push 0x2122
lea eax, [ebp - 0x3c]
push eax
push 0x7e0a
push 0x6c20
call fcn.10049e0e
add esp, 0x3c
mov dword [ebp - 0x14], 0
jmp 0x1005c204
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x1005c21a
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0xb4], 0xd1cb6a7f
jmp 0x1005c1fd
push 0
lea ecx, [ebp - 0x3c]
call fcn.1001d90b
mov eax, dword [eax]
mov dword [ebp - 0x68], eax
mov esi, dword [ebp - 0x68]
push 0
lea ecx, [ebp - 0x3c]
call fcn.1001d90b
cmp esi, dword [eax]
jle 0x1005c243
mov dword [ebp - 0x58], 1
jmp 0x1005c247
and dword [ebp - 0x58], 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.1001d90b
mov ecx, 0x7d8cf4c5
sub ecx, dword [eax]
je 0x1005c2a8
push 0
lea ecx, [ebp - 0x3c]
call fcn.1001d90b
mov esi, eax
push 0
lea ecx, [ebp - 0x3c]
call fcn.1001d90b
mov ecx, dword [esi]
cmp ecx, dword [eax]
jl 0x1005c281
xor eax, eax
inc eax
jne 0x1005c281
and dword [ebp - 0x50], 0
jmp 0x1005c288
mov dword [ebp - 0x50], 1
cmp dword [ebp - 0x50], 0xfffd
jb 0x1005c29a
mov dword [ebp - 0x60], 1
jmp 0x1005c29e
and dword [ebp - 0x60], 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.1001d90b
push 0
lea ecx, [ebp - 0x3c]
call fcn.1001d90b
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [eax]
jl 0x1005c2c2
mov dword [ebp - 0x44], 1
jmp 0x1005c2c6
and dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 1
jne 0x1005c2d5
mov dword [ebp - 0x4c], 1
jmp 0x1005c2d9
and dword [ebp - 0x4c], 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.1001d90b
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [eax]
jge 0x1005c2f3
mov dword [ebp - 0x40], 1
jmp 0x1005c2f7
and dword [ebp - 0x40], 0
cmp dword [ebp - 0x40], 0x4a11600d
jge 0x1005c30d
push 0xfffffffffffffff9
pop eax
test eax, eax
jne 0x1005c30d
and dword [ebp - 0x5c], 0
jmp 0x1005c314
mov dword [ebp - 0x5c], 1
cmp dword [ebp - 0x5c], 0xb4709ba8
je 0x1005c326
mov dword [ebp - 0x64], 1
jmp 0x1005c32a
and dword [ebp - 0x64], 0
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x64]
mov dword [ebp + eax - 0xb4], ecx
push 0
push 0x30a7
call fcn.1005fcf5
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.1001d8ef
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret