Function at 0x10030f85
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a136
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10031689
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 4]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
push 8
pop ecx
imul ecx, ecx, 5
lea eax, [eax + ecx + 0x78]
mov dword [ebp - 0x60], eax
push 2
lea ecx, [ebp - 0xf0]
call fcn.1001a36d
and dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x9ad59e57
mov dword [ebp - 0x30], 0
jmp 0x10031001
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 2
jge 0x1003101d
push dword [ebp - 0x30]
lea ecx, [ebp - 0xf0]
call fcn.1001a3f7
mov dword [eax], 0x204e
jmp 0x10030ffa
mov dword [ebp - 0x14], 0
jmp 0x1003102d
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jg 0x100311b9
push 1
lea ecx, [ebp - 0xb8]
call fcn.1001a36d
mov byte [ebp - 4], 1
push 1
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.100306f7
add esp, 0xc
push 0
lea ecx, [ebp - 0xb8]
call fcn.1001a3f7
and dword [eax], 0
jmp 0x10031096
push 0
lea ecx, [ebp - 0xb8]
call fcn.1001a3f7
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x94]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0xb8]
call fcn.1001a3f7
cmp dword [eax], 1
jg 0x100311a5
mov dword [ebp - 0xbc], 0xba22e974
mov dword [ebp - 0x20], 0
jmp 0x100310c6
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
jge 0x100310dc
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0xdc], 0xa9576c3a
jmp 0x100310bf
push 4
pop eax
shl eax, 1
mov dword [ebp + eax - 0xdc], 0
jmp 0x10031107
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0xdc]
inc eax
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0xdc], eax
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0xdc], 1
jg 0x100311a0
mov dword [ebp - 0x28], 0xaad8530d
mov dword [ebp - 0x28], 1
jmp 0x10031131
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x1003119b
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x2c], 1
jmp 0x1003114e
mov eax, dword [ebp - 0x2c]
dec eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x10031199
push 0x5bcf
push 0x6e10
push 0x23d3
push 0x726a
lea eax, [ebp - 0xbc]
push eax
push 0x3b08
push 0x46f0
push 0x3849
push 0x7c08
push 0x3441
push 0x54de
push 1
call fcn.1003076a
add esp, 0x30
jmp 0x10031147
jmp 0x1003112a
jmp 0x100310ee
jmp 0x10031072
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.1001a3f2
jmp 0x10031026
mov dword [ebp - 0x14], 0
jmp 0x100311c9
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xfffffff9
jle 0x10031221
mov dword [ebp - 0x38], 0xe1e01b17
mov byte [ebp - 0x16], 0
movzx eax, byte [ebp - 0x16]
test eax, eax
je 0x100311f6
push 1
push 0x1cfa
push 0x374d
call fcn.100309a2
add esp, 0xc
mov dword [ebp - 0x38], 0
jmp 0x10031206
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x19
jle 0x1003121f
mov byte [ebp - 0x17], 0
lea eax, [ebp - 0x17]
push eax
push 1
call fcn.10030a09
pop ecx
pop ecx
jmp 0x100311ff
jmp 0x100311c2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.1001a3f2
mov eax, dword [ebp - 0x60]
cmp dword [eax + 4], 0
jbe 0x10031687
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x7c]
add ecx, dword [eax]
mov dword [ebp - 0x84], ecx
push 3
lea ecx, [ebp - 0xa0]
call fcn.1001a36d
mov dword [ebp - 4], 2
mov dword [ebp - 0x1c], 0xffffffff
push 0x6bab
push 0x13a5
push 1
lea eax, [ebp - 0xa0]
push eax
push 0x1ca0
push 0x2215
push 0x120f
lea eax, [ebp - 0xe4]
push eax
call fcn.10030a55
add esp, 0x20
mov dword [ebp - 0x1c], 0
jmp 0x100312a7
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 2
jg 0x10031632
mov dword [ebp - 0x10], 0xd4ea6801
mov dword [ebp - 0x70], 0x7d77fc7d
mov dword [ebp - 0x10], 2
jmp 0x100312cf
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x100312f1
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x100312ef
push 0x6d78
push 1
call fcn.10030bc0
pop ecx
pop ecx
jmp 0x100312c8
mov dword [ebp - 0x10], 0
jmp 0x10031301
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jg 0x1003162d
push 2
lea ecx, [ebp - 0x50]
call fcn.1001a36d
mov byte [ebp - 4], 3
mov dword [ebp - 0xc4], 4
mov dword [ebp - 0x24], 0
jmp 0x10031333
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 2
jge 0x10031349
push dword [ebp - 0x24]
lea ecx, [ebp - 0x50]
call fcn.1001a3f7
or dword [eax], 0xffffffff
jmp 0x1003132c
push 1
lea ecx, [ebp - 0x50]
call fcn.1001a3f7
mov dword [eax], 2
jmp 0x1003137c
push 1
lea ecx, [ebp - 0x50]
call fcn.1001a3f7
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], eax
push 1
lea ecx, [ebp - 0x50]
call fcn.1001a3f7
cmp dword [eax], 0
jl 0x1003161c
mov dword [ebp - 0x34], 0x831d26ec
mov dword [ebp - 0xac], 0xfffffffb
mov dword [ebp - 0x34], 2
jmp 0x100313b0
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x10031617
push 1
lea ecx, [ebp - 0x50]
call fcn.1001a3f7
push dword [eax]
lea ecx, [ebp - 0xa0]
call fcn.1001a3f7
mov dword [ebp - 0x5c], eax
push 1
lea ecx, [ebp - 0x50]
call fcn.1001a3f7
push dword [eax]
lea ecx, [ebp - 0xa0]
call fcn.1001a3f7
mov ecx, dword [ebp - 0x5c]
mov eax, dword [eax]
mov dword [ecx], eax
push 1
lea ecx, [ebp - 0x50]
call fcn.1001a3f7
mov ecx, dword [ebp - 0x5c]
mov ecx, dword [ecx]
imul ecx, dword [eax]
neg ecx
je 0x100315fe
mov dword [ebp - 0x90], 7
mov dword [ebp - 0x3c], 0
jmp 0x10031426
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 2
jge 0x10031439
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x44], 6
jmp 0x1003141f
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0x44], 0
jmp 0x1003145e
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x44]
dec eax
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0x44], eax
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x44], 0xffffffe9
jge 0x100315fc
mov dword [ebp - 0xcc], 0xffffffff
mov dword [ebp - 0x80], 1
push 1
push 0xcf4
push 0x3b38
call fcn.10030c0c
add esp, 0xc
push 1
lea ecx, [ebp - 0x50]
call fcn.1001a3f7
cmp dword [eax], 0
je 0x1003153e
push 0xa
pop eax
sub eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x10], eax
jg 0x100314cd
push 0
lea ecx, [ebp - 0xa0]
call fcn.1001a3f7
cmp dword [eax], 0
jne 0x100314cd
and dword [ebp - 0xa4], 0
jmp 0x100314d7
mov dword [ebp - 0xa4], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xc4]
cmp dword [ebp - 0xcc], eax
jge 0x100314fa
mov dword [ebp - 0x88], 1
jmp 0x10031501
and dword [ebp - 0x88], 0
cmp dword [ebp - 0x88], 0xfffffff9
jge 0x10031513
mov dword [ebp - 0x68], 1
jmp 0x10031517
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x1003153e
mov dword [ebp - 0x54], 1
jmp 0x10031542
and dword [ebp - 0x54], 0
cmp dword [ebp - 0x54], 0x56cd
jl 0x10031554
mov dword [ebp - 0x58], 1
jmp 0x10031558
and dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 0x4ac
jne 0x1003156a
mov dword [ebp - 0x64], 1
jmp 0x1003156e
and dword [ebp - 0x64], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x44]
cmp dword [ebp - 0x64], eax
je 0x10031586
mov dword [ebp - 0x6c], 1
jmp 0x1003158a
and dword [ebp - 0x6c], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x44]
cmp dword [ebp - 0x6c], eax
je 0x100315a5
mov dword [ebp - 0xa8], 1
jmp 0x100315ac
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xf4], eax
mov eax, 0xa93f
test eax, eax
jne 0x100315d4
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x44], 0
jne 0x100315d4
and dword [ebp - 0x74], 0
jmp 0x100315db
mov dword [ebp - 0x74], 1
push 1
lea ecx, [ebp - 0x50]
call fcn.1001a3f7
push dword [eax]
lea ecx, [ebp - 0xa0]
call fcn.1001a3f7
mov ecx, dword [ebp - 0x74]
mov dword [eax], ecx
jmp 0x10031449
jmp 0x10031612
mov dword [ebp - 0xc8], 0x5cc9
mov dword [ebp - 0xc8], 0xffff0001
jmp 0x100313a9
jmp 0x1003135b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.1001a3f2
jmp 0x100312fa
jmp 0x100312a0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.1001a3f2
mov eax, dword [ebp - 0x84]
cmp dword [eax], 0
jbe 0x10031687
push 0x3ff9
push 0x2491
push 1
call fcn.10030c88
add esp, 0xc
push 0x614
lea eax, [ebp - 0x7c]
push eax
push 0x35f4
push 1
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0xc0]
call fcn.10030edc
add esp, 0x18
jmp 0x10031641
jmp 0x1003169a
push 0
push 0xa6e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret