Function at 0x100241d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100241f3
push 0x2458
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x10024594
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 0xba339924
mov dword [ebp - 8], 0xc4ab274b
mov dword [ebp - 0x4c], 0xd2086bd0
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x80], 0xf906d8bc
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x28], 0
jmp 0x1002424e
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
jge 0x10024261
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0x54], 0xfffffff8
jmp 0x10024247
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x14], eax
jl 0x1002427e
mov dword [ebp - 0x60], 1
jmp 0x10024282
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x14]
je 0x10024314
cmp dword [ebp - 0x14], 0
jne 0x100242a0
cmp dword [ebp - 0x20], 0
jne 0x100242a0
and dword [ebp - 0x44], 0
jmp 0x100242a7
mov dword [ebp - 0x44], 1
cmp dword [ebp - 0x44], 0xfffffff9
jne 0x100242b6
mov dword [ebp - 0x68], 1
jmp 0x100242ba
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x68], eax
je 0x100242cb
mov dword [ebp - 0x38], 1
jmp 0x100242cf
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x88], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x54], 0
je 0x100242fb
push 4
pop eax
test eax, eax
je 0x100242fb
mov dword [ebp - 0x74], 1
jmp 0x100242ff
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x20], 0
je 0x10024314
and dword [ebp - 0x5c], 0
jmp 0x1002431b
mov dword [ebp - 0x5c], 1
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 8], 0
jmp 0x10024331
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jge 0x10024344
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x54], 0xfffffff9
jmp 0x1002432a
cmp dword [ebp - 0x30], 0
jle 0x10024594
mov dword [ebp - 4], 0x6802
mov dword [ebp - 0x2c], 0
jmp 0x10024365
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jge 0x1002437b
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0x84], 5
jmp 0x1002435e
imul eax, dword [ebp - 4], 0
test eax, eax
je 0x100243a3
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 4]
sub eax, 0x8a0
sub eax, dword [ebp - 4]
je 0x100243a3
cmp dword [ebp - 4], 0
je 0x100243a3
mov dword [ebp - 0x64], 1
jmp 0x100243a7
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x64], eax
je 0x100243be
cmp dword [ebp - 4], 0
je 0x100243be
mov dword [ebp - 0x48], 1
jmp 0x100243c2
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp - 4]
jge 0x100243d6
mov dword [ebp - 0x50], 1
jmp 0x100243da
and dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 0xfff7
je 0x100243ec
mov dword [ebp - 0x58], 1
jmp 0x100243f0
and dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 0x9beab1d6
jae 0x1002440e
cmp dword [ebp - 4], 0
je 0x1002440e
cmp dword [ebp - 4], 0
je 0x1002440e
mov dword [ebp - 0x3c], 1
jmp 0x10024412
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x3c], eax
jge 0x1002442d
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x84], 0xb489f7a9
jmp 0x10024459
mov byte [ebp - 9], 0
movzx eax, byte [ebp - 9]
test eax, eax
je 0x10024459
push 0
push 0x23a1
push 0x1dfa
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_SetDIBColorTable]
push 4
push 0x1000
push dword [ebp - 0x30]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x70]
add ecx, dword [eax + 0xc]
push ecx
push 0x12f6
push 0x1413
call fcn.1001ffc0
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
mov dword [ebp - 0x78], 0x6bafcb14
mov dword [ebp - 0x18], 0
jmp 0x1002449c
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jge 0x100244af
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x10], 0xfffffffa
jmp 0x10024495
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x10], 0
jmp 0x100244d4
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x10]
dec eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x10], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x10], 0xfffffffc
jne 0x1002455e
mov dword [ebp - 0x1c], 0x7ad95e17
mov dword [ebp - 0x1c], 0xfffffff8
jmp 0x100244f8
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x12
jge 0x1002453d
mov dword [ebp - 0x24], 0
jmp 0x1002450e
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 4
jge 0x10024524
mov eax, dword [ebp - 0x24]
mov dword [ebp + eax*4 - 0x9c], 0x985a9576
jmp 0x10024507
push 4
pop eax
imul eax, eax, 0
push 4
pop ecx
imul ecx, ecx, 3
mov eax, dword [ebp + eax - 0x10]
mov dword [ebp + ecx - 0x9c], eax
jmp 0x100244f1
mov byte [ebp - 0xa], 0
push 0x1b9c
lea eax, [ebp - 0xa]
push eax
push 0
push 0xff7
call fcn.10020a9a
add esp, 0x10
jmp 0x100244bf
push 0
lea eax, [ebp - 0x78]
push eax
call fcn.10021807
pop ecx
pop ecx
lea eax, [ebp - 0x34]
push eax
push 0x3879
push 1
lea eax, [ebp - 0x40]
push eax
call fcn.10020a9a
add esp, 0x10
push dword [ebp - 0x30]
push 0
mov eax, dword [ebp - 0x34]
push dword [eax]
call fcn.10020148
add esp, 0xc
mov esp, ebp
pop ebp
ret