Function at 0x1005bda6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1005bff4
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x50], eax
lea eax, [ebp + 0x30]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x30], 0x41a2
mov dword [ebp - 0xa8], 0x1000dc8c
cmp dword [ebp - 0x30], 0x4577
jle 0x1005be96
and dword [ebp - 0x18], 0
jmp 0x1005be07
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x58f0
jge 0x1005be96
and dword [ebp - 0x2c], 0
jmp 0x1005be21
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x6c9a
jge 0x1005be91
and dword [ebp - 0x10], 0
jmp 0x1005be37
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x370b
jge 0x1005be8f
and dword [ebp - 0x28], 0
jmp 0x1005be4d
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x7a58
jge 0x1005be8d
mov eax, dword [ebp - 0x2c]
cdq
idiv dword [ebp - 0x10]
mov eax, edx
cdq
idiv dword [ebp - 0x28]
or edx, dword [ebp - 0x18]
mov eax, edx
cdq
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], edx
push dword [ebp - 0xb4]
push dword [ebp - 0xb8]
mov ecx, 0x1008bbb8
call fcn.1001fc14
jmp 0x1005be46
jmp 0x1005be30
jmp 0x1005be1a
jmp 0x1005be00
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0x30], 0x417a
jge 0x1005beb8
mov edx, dword [ebp - 0xa8]
mov ecx, 0x1008bbb8
call fcn.100228da
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x1005bf1e
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1005befc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 4
jge 0x1005bf19
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0xe4]
call fcn.1001ffcc
and dword [eax], 0
jmp 0x1005bef1
jmp 0x1005bfef
mov dword [ebp - 0x38], 0x9da
mov dword [ebp - 0xa0], 0x1000dcb8
cmp dword [ebp - 0x38], 0xb63
jle 0x1005bf91
and dword [ebp - 0x24], 0
jmp 0x1005bf45
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x6b51
jge 0x1005bf91
and dword [ebp - 0x20], 0
jmp 0x1005bf5b
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x374f
jge 0x1005bf8f
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], edx
push dword [ebp - 0xc0]
push dword [ebp - 0xc4]
mov ecx, 0x1008bbb8
call fcn.1001fc14
jmp 0x1005bf54
jmp 0x1005bf3e
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x38], 0x80d
jge 0x1005bfb0
mov edx, dword [ebp - 0xa0]
mov ecx, 0x1008bbb8
call fcn.100228da
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x80]
mov ecx, dword [ecx]
add ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xb0]
mov dword [eax], ecx
jmp 0x1005c20c
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xd4], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x88]
movzx eax, byte [eax]
test eax, eax
je 0x1005c1ad
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], 0x1383
mov dword [ebp - 0x64], 0x1000dd04
cmp dword [ebp - 0x3c], 0x148a
jle 0x1005c0d6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
and dword [ebp - 8], 0
jmp 0x1005c064
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x4877
jge 0x1005c0d6
and dword [ebp - 0xc], 0
jmp 0x1005c07a
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1d40
jge 0x1005c0d4
mov eax, dword [ebp - 8]
or eax, dword [ebp - 0xc]
cdq
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], edx
push dword [ebp - 0xcc]
push dword [ebp - 0xd0]
lea ecx, [ebp - 0xfc]
call fcn.10010ffe
pop ecx
pop ecx
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
call fcn.1001fbf4
push eax
call fcn.100714f3
pop ecx
lea ecx, [ebp - 0xfc]
call fcn.1001fbea
jmp 0x1005c073
jmp 0x1005c05d
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x34], 0x29b3
mov dword [ebp - 0x5c], 0x1000dd24
cmp dword [ebp - 0x34], 0x2d02
jle 0x1005c17c
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
and dword [ebp - 0x14], 0
jmp 0x1005c110
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x5d1c
jge 0x1005c17c
and dword [ebp - 0x1c], 0
jmp 0x1005c126
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x720a
jge 0x1005c17a
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], edx
push dword [ebp - 0xd8]
push dword [ebp - 0xdc]
lea ecx, [ebp - 0x114]
call fcn.10010ffe
pop ecx
pop ecx
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
call fcn.1001fbf4
push eax
call fcn.100714f3
pop ecx
lea ecx, [ebp - 0x114]
call fcn.1001fbea
jmp 0x1005c11f
jmp 0x1005c109
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
mov eax, dword [eax]
and dword [eax + 0xc], 0
cmp dword [ebp - 0x34], 0x2990
jge 0x1005c199
push dword [ebp - 0x5c]
call fcn.100714f3
pop ecx
cmp dword [ebp - 0x3c], 0x12e6
jge 0x1005c1ab
push dword [ebp - 0x64]
call fcn.100714f3
pop ecx
jmp 0x1005c20c
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x9c], eax
push dword [ebp - 0x9c]
push 0
mov eax, dword [ebp - 0xa4]
push dword [eax]
mov eax, dword [ebp - 0xac]
push dword [eax]
call fcn.10057526
add esp, 0x10
mov esp, ebp
pop ebp
ret