Function at 0x1001deba
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 2
jne 0x1001e048
mov dword [ebp - 8], esp
push str.Comet_Thread
push dword [ebp + 8]
xor eax, eax
call dword [0x1018710b]
nop
nop
cmp dword [ebp - 8], esp
je 0x1001df05
push 0x4c
push 0x4298146
push 6
call fcn.1012e0c6
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001df6f
mov dword [ebp - 8], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x1001df43
push 0xaf
push 0x4298146
push 6
call fcn.1012e0c6
add esp, 0xc
mov dword [ebp - 8], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 8], esp
je 0x1001df6f
push 0xd2
push 0x4298146
push 6
call fcn.1012e0c6
add esp, 0xc
mov dword [ebp - 8], esp
push str.Comet_Image
push dword [ebp + 8]
xor eax, eax
call dword [0x1018710b]
nop
nop
cmp dword [ebp - 8], esp
je 0x1001dfa0
push 0x107
push 0x4298146
push 6
call fcn.1012e0c6
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001dfd9
mov dword [ebp - 8], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
nop
nop
cmp dword [ebp - 8], esp
je 0x1001dfd9
push 0x169
push 0x4298146
push 6
call fcn.1012e0c6
add esp, 0xc
mov dword [ebp - 8], esp
push str.Comet_Stream
push dword [ebp + 8]
xor eax, eax
call dword [0x1018710b]
nop
nop
cmp dword [ebp - 8], esp
je 0x1001e00a
push 0x19e
push 0x4298146
push 6
call fcn.1012e0c6
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001e043
mov dword [ebp - 8], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
nop
nop
cmp dword [ebp - 8], esp
je 0x1001e043
push 0x201
push 0x4298146
push 6
call fcn.1012e0c6
add esp, 0xc
jmp 0x1001e137
cmp dword [ebp + 0xc], 0x201
jne 0x1001e137
mov dword [ebp - 8], esp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [0x1018710f]
nop
nop
cmp dword [ebp - 8], esp
je 0x1001e08a
push 0x27c
push 0x4298146
push 6
call fcn.1012e0c6
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push str.CometHitMove
push dword [ebp + 8]
xor eax, eax
call dword [0x1018710b]
nop
nop
cmp dword [ebp - 8], esp
je 0x1001e0be
push 0x2d0
push 0x4298146
push 6
call fcn.1012e0c6
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x1001e12f
mov dword [ebp - 8], esp
xor eax, eax
call dword [0x10187113]
nop
nop
cmp dword [ebp - 8], esp
je 0x1001e0f4
push 0x307
push 0x4298146
push 6
call fcn.1012e0c6
add esp, 0xc
mov dword [ebp - 8], esp
push 0
push 2
push 0xa1
push dword [ebp + 8]
xor eax, eax
call dword [0x10187117]
nop
nop
cmp dword [ebp - 8], esp
je 0x1001e12f
push 0x31a
push 0x4298146
push 6
call fcn.1012e0c6
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1001e171
mov dword [ebp - 8], esp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [0x1018710f]
nop
nop
cmp dword [ebp - 8], esp
je 0x1001e16c
push 0x38c
push 0x4298146
push 6
call fcn.1012e0c6
add esp, 0xc
jmp 0x1001e171
mov esp, ebp
pop ebp
ret 0x10