Function at 0x100497f5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10086c4a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push esi
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10049a7c
mov dword [ebp - 0x4c], 0
jmp 0x10049830
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 1
jge 0x10049843
mov eax, dword [ebp - 0x4c]
mov dword [ebp + eax*4 - 0x20], 3
jmp 0x10049829
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x20], 5
jmp 0x10049868
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x20]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x20], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x20], 0x1a
jle 0x10049992
mov dword [ebp - 0x30], 0xfffffffe
mov dword [ebp - 0x12c], 0xfffffff7
mov dword [ebp - 0x24], 0xfffffffd
cmp dword [ebp - 0x30], 1
jle 0x100498a3
mov dword [ebp - 0xb4], 1
jmp 0x100498aa
and dword [ebp - 0xb4], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0xb4]
sub ecx, dword [ebp + eax - 0x20]
imul ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x24], eax
jne 0x100498d5
mov dword [ebp - 0xc8], 1
jmp 0x100498dc
and dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
imul ecx, dword [ebp - 0xc8]
sub eax, ecx
cmp eax, 0xc4b7c700
ja 0x100498fe
mov dword [ebp - 0xc0], 1
jmp 0x10049905
and dword [ebp - 0xc0], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x20]
cmp eax, dword [ebp - 0xc0]
jne 0x10049972
mov dword [ebp - 0x48], 0
jmp 0x10049927
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 3
jge 0x1004993d
mov eax, dword [ebp - 0x48]
mov dword [ebp + eax*4 - 0x154], 4
jmp 0x10049920
mov dword [ebp - 0x24], 2
jmp 0x1004994d
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x10049970
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x1004996e
push 0x1e25
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
jmp 0x10049946
jmp 0x1004998d
mov byte [ebp - 0x18], 0
movzx eax, byte [ebp - 0x18]
test eax, eax
je 0x1004998d
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_EndPaint]
jmp 0x10049853
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x118], 0x8ade19d2
mov dword [ebp - 0x120], 0x25b0e446
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x10c], 0xba07e4fc
push 2
lea ecx, [ebp - 0x144]
call fcn.10016d92
and dword [ebp - 4], 0
mov dword [ebp - 0xa4], 0xfffffffe
mov dword [ebp - 0x44], 0
jmp 0x10049a03
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 2
jge 0x10049a1f
push dword [ebp - 0x44]
lea ecx, [ebp - 0x144]
call fcn.10016e0a
mov dword [eax], 0xfe30f587
jmp 0x100499fc
mov eax, dword [ebp - 0xa4]
dec eax
mov dword [ebp - 0xa4], eax
mov byte [ebp - 0x16], 0
movzx eax, byte [ebp - 0x16]
test eax, eax
je 0x10049a50
push 0
push 0x19eb
push 0
push 0
push 0x10d9
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.10016dee
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
jmp 0x1004a07e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xf0], eax
push 1
lea ecx, [ebp - 0x68]
call fcn.10016d92
mov dword [ebp - 4], 1
mov dword [ebp - 0x50], 0xffffffff
mov dword [ebp - 0x5c], 3
mov dword [ebp - 0x94], 0x563ffaf0
push 2
lea ecx, [ebp - 0x7c]
call fcn.10016d92
mov byte [ebp - 4], 2
mov dword [ebp - 0x11c], 0xc019
mov dword [ebp - 0x54], 0xfffffffd
mov dword [ebp - 0x2c], 0xa83acdd7
mov dword [ebp - 0x14], 0
jmp 0x10049ae4
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jge 0x10049afd
push dword [ebp - 0x14]
lea ecx, [ebp - 0x68]
call fcn.10016e0a
mov dword [eax], 0x59d5
jmp 0x10049add
mov dword [ebp - 0x14], 0
jmp 0x10049b0d
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jge 0x10049b26
push dword [ebp - 0x14]
lea ecx, [ebp - 0x7c]
call fcn.10016e0a
mov dword [eax], 0x2b4746a1
jmp 0x10049b06
push 0
lea ecx, [ebp - 0x68]
call fcn.10016e0a
cmp dword [eax], 0
jne 0x10049c91
mov eax, dword [ebp - 0x54]
dec eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x2c], 0
jne 0x10049b52
mov dword [ebp - 0xbc], 1
jmp 0x10049b59
and dword [ebp - 0xbc], 0
cmp dword [ebp - 0x50], 0
jne 0x10049b96
push 1
lea ecx, [ebp - 0x7c]
call fcn.10016e0a
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x84], eax
push 1
lea ecx, [ebp - 0x7c]
call fcn.10016e0a
mov ecx, dword [ebp - 0x84]
mov dword [eax], ecx
cmp dword [ebp - 0x84], 0
jne 0x10049b96
and dword [ebp - 0xc4], 0
jmp 0x10049ba0
mov dword [ebp - 0xc4], 1
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0xc4], eax
jg 0x10049bb7
mov dword [ebp - 0x8c], 1
jmp 0x10049bbe
and dword [ebp - 0x8c], 0
mov esi, dword [ebp - 0x8c]
dec esi
sub esi, dword [ebp - 0x5c]
push 0
lea ecx, [ebp - 0x68]
call fcn.10016e0a
cmp esi, dword [eax]
je 0x10049be2
mov dword [ebp - 0xac], 1
jmp 0x10049be9
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0xa705
jl 0x10049c0d
mov dword [ebp - 0x9c], 1
jmp 0x10049c14
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0xbc]
cmp eax, dword [ebp - 0x9c]
je 0x10049c31
push 1
lea ecx, [ebp - 0x7c]
call fcn.10016e0a
cmp dword [eax], 0
je 0x10049c49
push 1
lea ecx, [ebp - 0x7c]
call fcn.10016e0a
cmp dword [eax], 0
je 0x10049c49
mov dword [ebp - 0x6c], 1
jmp 0x10049c4d
and dword [ebp - 0x6c], 0
push 0
lea ecx, [ebp - 0x68]
call fcn.10016e0a
mov eax, dword [eax]
add eax, dword [ebp - 0x6c]
cmp eax, 0xfff6
je 0x10049c6c
mov dword [ebp - 0x70], 1
jmp 0x10049c70
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x70], eax
jg 0x10049c91
push 0
lea ecx, [ebp - 0x68]
call fcn.10016e0a
cmp dword [eax], 0
jne 0x10049c91
cmp dword [ebp - 0x50], 0
jne 0x10049c91
cmp dword [ebp - 0x2c], 0
cmp dword [ebp - 0x50], 0xc7bc
je 0x10049ca3
mov dword [ebp - 0x80], 1
jmp 0x10049ca7
and dword [ebp - 0x80], 0
push 0
lea ecx, [ebp - 0x68]
call fcn.10016e0a
mov ecx, dword [ebp - 0x80]
cmp ecx, dword [eax]
jle 0x10049cc4
mov dword [ebp - 0x88], 1
jmp 0x10049ccb
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x2c], eax
push 1
lea ecx, [ebp - 0x7c]
call fcn.10016e0a
mov dword [eax], 0x73cd9e64
cmp dword [ebp - 0x5c], 0
jne 0x10049d02
push 0
lea ecx, [ebp - 0x68]
call fcn.10016e0a
cmp dword [eax], 0
jne 0x10049d02
and dword [ebp - 0x90], 0
jmp 0x10049d0c
mov dword [ebp - 0x90], 1
push 0
lea ecx, [ebp - 0x7c]
call fcn.10016e0a
mov ecx, dword [ebp - 0x90]
cmp ecx, dword [eax]
jl 0x10049d2c
mov dword [ebp - 0x98], 1
jmp 0x10049d33
and dword [ebp - 0x98], 0
push 0
lea ecx, [ebp - 0x68]
call fcn.10016e0a
mov eax, dword [eax]
cmp eax, dword [ebp - 0x98]
jl 0x10049d53
mov dword [ebp - 0xd0], 1
jmp 0x10049d5a
and dword [ebp - 0xd0], 0
push 0
lea ecx, [ebp - 0x68]
call fcn.10016e0a
mov ecx, dword [ebp - 0x2c]
cmp dword [eax], ecx
jg 0x10049d77
mov dword [ebp - 0xa0], 1
jmp 0x10049d7e
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
call fcn.10016dee
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.10016dee
mov eax, dword [ebp + 8]
mov dword [ebp - 0xcc], eax
push 1
lea ecx, [ebp - 0x108]
call fcn.10016d92
mov dword [ebp - 4], 3
mov dword [ebp - 0xe0], 1
mov dword [ebp - 0x148], 0x3b6182ea
mov dword [ebp - 0x38], 0
jmp 0x10049de0
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 1
jge 0x10049dfc
push dword [ebp - 0x38]
lea ecx, [ebp - 0x108]
call fcn.10016e0a
mov dword [eax], 0xda11525
jmp 0x10049dd9
mov byte [ebp - 0x17], 0
movzx eax, byte [ebp - 0x17]
test eax, eax
je 0x10049e15
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push 0
lea ecx, [ebp - 0x108]
call fcn.10016e0a
mov eax, dword [eax]
mov dword [ebp - 0xe0], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.10016dee
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], 1
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x10049e73
push 0x1dc6
push 0x1dac
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_LineTo]
mov dword [ebp - 0x3c], 0
jmp 0x10049e83
mov eax, dword [ebp - 0x3c]
dec eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xfffffffa
jge 0x10049ea2
mov dword [ebp - 0xa8], 0xe0b4074d
mov eax, dword [ebp - 0xa8]
inc eax
mov dword [ebp - 0xa8], eax
jmp 0x10049e7c
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0x28], 0x39b642c7
mov dword [ebp - 0x58], 0xffffffff
push 3
lea ecx, [ebp - 0xec]
call fcn.10016d92
mov dword [ebp - 4], 4
mov dword [ebp - 0xd8], 2
mov dword [ebp - 0xdc], 0xc01e6e2b
mov dword [ebp - 0x40], 0
jmp 0x10049ef4
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 3
jge 0x10049f10
push dword [ebp - 0x40]
lea ecx, [ebp - 0xec]
call fcn.10016e0a
mov dword [eax], 0x86e871d9
jmp 0x10049eed
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x28], 0
jmp 0x10049f26
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 2
jg 0x1004a039
push 4
lea ecx, [ebp - 0xfc]
call fcn.10016d92
mov byte [ebp - 4], 5
mov dword [ebp - 0x10], 0
jmp 0x10049f51
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x10049f67
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x138], 0xf7b6fe6d
jmp 0x10049f4a
mov dword [ebp - 0x10], 0
jmp 0x10049f77
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jge 0x10049f93
push dword [ebp - 0x10]
lea ecx, [ebp - 0xfc]
call fcn.10016e0a
mov dword [eax], 0xde6fc608
jmp 0x10049f70
push dword [ebp - 0x28]
lea ecx, [ebp - 0xec]
call fcn.10016e0a
mov ecx, dword [ebp - 0xd8]
cmp dword [eax], ecx
jne 0x10049fb7
mov dword [ebp - 0xb8], 1
jmp 0x10049fbe
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x124], eax
push 4
pop eax
imul eax, eax, 0
lea eax, [ebp + eax - 0x138]
mov dword [ebp - 0xb0], eax
push 1
lea ecx, [ebp - 0xec]
call fcn.10016e0a
mov ecx, dword [ebp - 0xb0]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x58], eax
mov esi, dword [ebp - 0x58]
push 0
lea ecx, [ebp - 0xec]
call fcn.10016e0a
imul esi, dword [eax]
sub esi, 0x4414
push 2
lea ecx, [ebp - 0xfc]
call fcn.10016e0a
mov dword [eax], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xfc]
call fcn.10016dee
jmp 0x10049f1f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call fcn.10016dee
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
jmp 0x1004a05e
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
mov eax, dword [ebp - 0x34]
cmp dword [eax], 3
jge 0x1004a07e
mov eax, dword [ebp - 0x34]
push dword [eax]
mov ecx, dword [ebp - 0xd4]
call fcn.10016e0a
mov dword [eax], 0xfffa
jmp 0x1004a053
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret