Function at 0x1002fdc5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062614
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xdc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1002fe39
lea eax, [ebp + 0xc]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
movzx eax, byte [eax]
test eax, eax
je 0x1002fe23
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x1002fe21
push 0x19b5
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x1002fe34
push 0x13a4
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
jmp 0x1003032e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x3c], 0x55261fc4
mov dword [ebp - 0x8c], 0x56c9
mov dword [ebp - 0x9c], 0x100099c0
cmp dword [ebp - 0x8c], 0x588e
jle 0x1002fed4
and dword [ebp - 0x2c], 0
jmp 0x1002fe86
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x66a8
jge 0x1002fed4
and dword [ebp - 0x24], 0
jmp 0x1002fe9c
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x7f90
jge 0x1002fed2
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
shl eax, cl
cdq
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], edx
push dword [ebp - 0xbc]
push dword [ebp - 0xc0]
mov ecx, 0x1060aeb8
call fcn.10010996
jmp 0x1002fe95
jmp 0x1002fe7f
mov dword [ebp - 0xe0], 2
mov dword [ebp - 0xdc], 2
mov dword [ebp - 0xd8], 2
mov dword [ebp - 0xd4], 2
lea ecx, [ebp - 0x41]
call fcn.10010c6b
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0xec]
call fcn.10010c6e
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0xb0]
call fcn.10010c1a
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x8c], 0x565e
jge 0x1002ff52
mov edx, dword [ebp - 0x9c]
mov ecx, 0x1060aeb8
call fcn.100132ba
jmp 0x1002ff6e
and dword [ebp - 4], 0
jmp 0x1002ff78
mov dword [ebp - 0x80], 0xfffffff9
mov dword [ebp - 0x54], 0x7567
mov dword [ebp - 0xa0], 0x100099e0
cmp dword [ebp - 0x54], 0x778b
jle 0x10030032
and dword [ebp - 0x30], 0
jmp 0x1002ffaa
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x50e0
jge 0x10030032
and dword [ebp - 0x28], 0
jmp 0x1002ffc0
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x2e4f
jge 0x1003002d
and dword [ebp - 0x34], 0
jmp 0x1002ffd6
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x1a5d
jge 0x1003002b
and dword [ebp - 0x40], 0
jmp 0x1002ffec
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x6812
jge 0x10030029
mov eax, dword [ebp - 0x34]
cdq
idiv dword [ebp - 0x40]
mov eax, dword [ebp - 0x28]
sub eax, edx
xor eax, dword [ebp - 0x30]
cdq
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], edx
push dword [ebp - 0xc8]
push dword [ebp - 0xcc]
mov ecx, 0x1060aeb8
call fcn.10010996
jmp 0x1002ffe5
jmp 0x1002ffcf
jmp 0x1002ffb9
jmp 0x1002ffa3
mov dword [ebp - 0x18], 0xfffffffa
mov byte [ebp - 4], 3
cmp dword [ebp - 0x54], 0x71fb
jge 0x10030056
mov edx, dword [ebp - 0xa0]
mov ecx, 0x1060aeb8
call fcn.100132ba
jmp 0x10030072
and dword [ebp - 4], 0
jmp 0x1003007c
mov dword [ebp - 0x38], 0
jmp 0x1003008c
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 1
jge 0x100300a2
mov eax, dword [ebp - 0x38]
mov dword [ebp + eax*4 - 0xa4], 0x9e8e
jmp 0x10030085
mov dword [ebp - 0x20], 0xfffffff1
jmp 0x100300b2
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffe9
jne 0x10030202
mov dword [ebp - 0x14], 0xfffffff9
mov dword [ebp - 0xb4], 0x3637b304
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0x14], 0
jne 0x100300e2
cmp dword [ebp - 0x14], 0
je 0x100300f4
cmp dword [ebp - 0x20], 0
je 0x100300f4
mov dword [ebp - 0x88], 1
jmp 0x100300fb
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x88], eax
jle 0x1003010f
mov dword [ebp - 0x5c], 1
jmp 0x10030113
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x5c], eax
jge 0x1003012a
cmp dword [ebp - 0x14], 0
jne 0x1003012a
and dword [ebp - 0x90], 0
jmp 0x10030134
mov dword [ebp - 0x90], 1
cmp dword [ebp - 0x90], 0x409884cb
jge 0x10030149
mov dword [ebp - 0x64], 1
jmp 0x1003014d
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
add eax, dword [ebp - 0x64]
add ecx, eax
je 0x10030168
xor eax, eax
inc eax
je 0x10030168
mov dword [ebp - 0x7c], 1
jmp 0x1003016c
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x14]
jg 0x10030183
mov dword [ebp - 0x6c], 1
jmp 0x10030187
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x14]
jne 0x1003019e
or eax, 0xffffffff
jne 0x1003019e
and dword [ebp - 0x4c], 0
jmp 0x100301a5
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x4c], eax
jge 0x100301bc
cmp dword [ebp - 0x3c], 0
je 0x100301bc
mov dword [ebp - 0x48], 1
jmp 0x100301c0
and dword [ebp - 0x48], 0
push 0
lea ecx, [ebp - 0xb0]
call fcn.10010c5c
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp dword [ebp - 0x48], 0
je 0x100301ea
mov eax, 0x7b83
test eax, eax
je 0x100301ea
mov dword [ebp - 0x74], 1
jmp 0x100301ee
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xb4], eax
jmp 0x100300ab
mov dword [ebp - 0x18], 0
jmp 0x10030212
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jg 0x10030309
mov dword [ebp - 0xc4], 5
cmp dword [ebp - 0x3c], 0x7c29
jge 0x1003023b
mov dword [ebp - 0x84], 1
jmp 0x10030242
and dword [ebp - 0x84], 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0xb0]
call fcn.10010c5c
mov eax, dword [eax]
cmp eax, dword [ebp - 0x84]
jl 0x10030263
mov dword [ebp - 0x70], 1
jmp 0x10030267
and dword [ebp - 0x70], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xa4]
add eax, 0xafec
cmp eax, 0x183a
jne 0x10030289
mov dword [ebp - 0x60], 1
jmp 0x1003028d
and dword [ebp - 0x60], 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0xb0]
call fcn.10010c5c
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [eax]
jg 0x100302ab
mov dword [ebp - 0x68], 1
jmp 0x100302af
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0xc4]
cmp dword [ebp - 0x68], eax
jge 0x100302c3
mov dword [ebp - 0x78], 1
jmp 0x100302c7
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x78]
jge 0x100302d8
mov dword [ebp - 0x50], 1
jmp 0x100302dc
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x50], eax
je 0x100302ed
mov dword [ebp - 0x58], 1
jmp 0x100302f1
and dword [ebp - 0x58], 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0xb0]
call fcn.10010c5c
mov ecx, dword [ebp - 0x58]
mov dword [eax], ecx
jmp 0x1003020b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.10010c40
push 0
push dword [ebp - 0xb8]
push dword [ebp - 0x98]
call fcn.100161de
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret