Function at 0x10041ee4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080a89
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100422ee
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x38], 0x1ab7
mov dword [ebp - 0x60], 0x1000b1d8
cmp dword [ebp - 0x38], 0x1e05
jle 0x10041fc8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [ebp - 0x1c], 0
jmp 0x10041f5a
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x7763
jge 0x10041fc8
and dword [ebp - 0x14], 0
jmp 0x10041f70
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x6025
jge 0x10041fc6
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
shl eax, cl
cdq
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], edx
push dword [ebp - 0xb4]
push dword [ebp - 0xb8]
lea ecx, [ebp - 0xd8]
call fcn.1001098e
pop ecx
pop ecx
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
call fcn.100208b8
push eax
call fcn.1006abb3
pop ecx
lea ecx, [ebp - 0xd8]
call fcn.100208ae
jmp 0x10041f69
jmp 0x10041f53
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x38], 0x17e2
jge 0x10041fe3
push dword [ebp - 0x60]
call fcn.1006abb3
pop ecx
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x5c], 0x6e94
mov dword [ebp - 0x94], 0x1000b228
cmp dword [ebp - 0x5c], 0x6f62
jle 0x100420a1
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_SetWinMetaFileBits]
and dword [ebp - 0x18], 0
jmp 0x10042042
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x2cb1
jge 0x1004208f
and dword [ebp - 0x20], 0
jmp 0x10042058
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4723
jge 0x1004208d
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], edx
push dword [ebp - 0xac]
push dword [ebp - 0xb0]
mov ecx, 0x10085b58
call fcn.100208d8
jmp 0x10042051
jmp 0x1004203b
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0x9c]
movzx eax, byte [eax]
test eax, eax
je 0x100421e0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x58], eax
mov eax, dword [0x10086c10]
and eax, 1
jne 0x10042107
mov eax, dword [0x10086c10]
or eax, 1
mov dword [0x10086c10], eax
and dword [ebp - 4], 0
mov ecx, 0x1008b0bc
call fcn.10020e47
push 0x10081127
call fcn.1006ab89
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
imul eax, dword [eax], 0x3e8
mov ecx, dword [ebp - 0x48]
add eax, dword [ecx]
mov dword [ebp - 0x24], eax
movzx eax, byte [0x1008b011]
test eax, eax
je 0x1004217c
mov ecx, 0x1008b0bc
call fcn.10042660
movzx eax, al
test eax, eax
jne 0x1004217c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x1008b0bc
call fcn.10020f0c
lea eax, [ebp - 0xc0]
push eax
mov ecx, 0x1008b0bc
call fcn.10020efe
push eax
lea ecx, [ebp - 0x50]
call fcn.10020f21
movzx eax, al
test eax, eax
je 0x1004217c
lea ecx, [ebp - 0x50]
call fcn.10042669
mov ecx, dword [ebp - 0x58]
mov eax, dword [eax + 4]
mov dword [ecx], eax
jmp 0x100422f6
push dword [ebp - 0x30]
call fcn.1002e50e
pop ecx
mov dword [ebp - 0x80], eax
push 1
mov eax, dword [ebp - 0x48]
push dword [eax]
push 0
push dword [ebp - 0x80]
call fcn.10034146
add esp, 0x10
mov dword [ebp - 0x40], eax
push 0x799b
push 0x4c2f
push 0x1008b0bc
lea eax, [ebp - 0x40]
push eax
push 1
push 1
push 0x1031
push 1
push 0x1008b011
lea eax, [ebp - 0x24]
push eax
call fcn.10041a94
add esp, 0x28
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
jmp 0x100422f6
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jg 0x10042237
mov dword [ebp - 0x34], 1
jmp 0x1004223b
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 2
jle 0x1004224c
mov dword [ebp - 0x28], 1
jmp 0x10042250
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [eax]
add ecx, 0x6c21
jne 0x1004226d
push 2
pop eax
test eax, eax
jne 0x1004226d
and dword [ebp - 0x2c], 0
jmp 0x10042274
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x2c], 5
jne 0x10042283
mov dword [ebp - 0x44], 1
jmp 0x10042287
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x84]
mov eax, dword [eax]
imul eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x44]
cmp eax, ecx
jl 0x100422a8
mov dword [ebp - 0x4c], 1
jmp 0x100422ac
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x4c]
jg 0x100422bf
mov dword [ebp - 0x54], 1
jmp 0x100422c3
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x54]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x8c]
mov dword [eax], ecx
cmp dword [ebp - 0x5c], 0x6ac0
jge 0x100422ec
mov edx, dword [ebp - 0x94]
mov ecx, 0x10085b58
call fcn.10023628
jmp 0x100422f6
push 0
call fcn.100249be
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret