Function at 0x10002d30
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b55d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1005f0b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov byte [0x1005fd71], 1
cmp dword [0x1005fd7c], 0
je 0x10002d9e
mov eax, dword [0x1005fd7c]
push 0x1388
push eax
call ebx
test eax, eax
je 0x10002d94
mov eax, dword [0x1005fd7c]
push 0
push eax
call esi
mov dword [0x1005fd7c], 0
cmp dword [0x1005fd78], 0
je 0x10002dcc
mov eax, dword [0x1005fd78]
push 0x898
push eax
call ebx
test eax, eax
je 0x10002dc2
mov eax, dword [0x1005fd78]
push 0
push eax
call esi
mov dword [0x1005fd78], 0
cmp dword [0x1005fd74], 0
je 0x10002dfa
mov eax, dword [0x1005fd74]
push 0xc8
push eax
call ebx
test eax, eax
je 0x10002df0
mov eax, dword [0x1005fd74]
push 0
push eax
call esi
mov dword [0x1005fd74], 0
mov eax, dword [edi + 0x416c]
test eax, eax
je 0x10002e24
push 0xc8
push eax
call ebx
test eax, eax
je 0x10002e1a
push 0
push dword [edi + 0x416c]
call esi
mov dword [edi + 0x416c], 0
cmp dword [0x1007deb4], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
je 0x10002e72
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x1007deb4]
push eax
call esi
test eax, eax
je 0x10002e4c
cmp dword [ebp - 0x14], 0x103
jne 0x10002e5a
mov eax, dword [0x1007deb4]
push 0
push eax
call dword [0x1007e1fc]
mov eax, dword [0x1007deb4]
push eax
call fcn.1000f9e0
add esp, 4
mov dword [0x1007deb4], 0
cmp dword [0x1005fd84], 0
je 0x10002eba
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x1005fd84]
push eax
call esi
test eax, eax
je 0x10002e94
cmp dword [ebp - 0x18], 0x103
jne 0x10002ea2
mov eax, dword [0x1005fd84]
push 0
push eax
call dword [0x1007e1fc]
mov eax, dword [0x1005fd84]
push eax
call fcn.1000f9e0
add esp, 4
mov dword [0x1005fd84], 0
mov eax, dword [edi + 8]
test eax, eax
je 0x10002ed1
push eax
call fcn.1000f9e0
add esp, 4
mov dword [edi + 8], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10002ee8
push eax
call fcn.1000f9e0
add esp, 4
mov dword [edi + 0xc], 0
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10002eff
push eax
call fcn.1000f9e0
add esp, 4
mov dword [edi + 0x10], 0
cmp dword [0x1005fd80], 0
je 0x10002f20
mov eax, dword [0x1005fd80]
push eax
call fcn.1000f9e0
add esp, 4
mov dword [0x1005fd80], 0
mov ecx, dword [edi + 0x41b0]
cmp ecx, 8
jb 0x10002f60
mov eax, dword [edi + 0x419c]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x10002f56
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000316e
mov eax, edx
push ecx
push eax
call fcn.100133fe
add esp, 8
xor eax, eax
mov dword [edi + 0x41ac], 0
mov word [edi + 0x419c], ax
or eax, 0xffffffff
mov dword [edi + 0x41b0], 7
mov edx, dword [edi + 0x4198]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10002f9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi + 0x4194]
cmp ecx, 8
jb 0x10002fdb
mov eax, dword [edi + 0x4180]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x10002fd1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000316e
mov eax, edx
push ecx
push eax
call fcn.100133fe
add esp, 8
xor eax, eax
mov dword [edi + 0x4190], 0
lea ecx, [edi + 0x413c]
mov dword [edi + 0x4194], 7
mov word [edi + 0x4180], ax
call fcn.1000cd20
lea ecx, [edi + 0x4130]
call fcn.1000cd20
lea ecx, [edi + 0x4124]
call fcn.1000cd20
lea ecx, [edi + 0x40e0]
call fcn.1000cdd0
mov eax, dword [edi + 0x40d0]
lea esi, [edi + 0x40d0]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.1000c160
push 0x28
push dword [esi]
call fcn.100133fe
mov ecx, dword [edi + 0x40bc]
add esp, 8
cmp ecx, 8
jb 0x10003087
mov eax, dword [edi + 0x40a8]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1000307d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000316e
mov eax, edx
push ecx
push eax
call fcn.100133fe
add esp, 8
xor eax, eax
mov dword [edi + 0x40b8], 0
lea ecx, [edi + 0x4090]
mov dword [edi + 0x40bc], 7
mov word [edi + 0x40a8], ax
call fcn.1000ea20
mov eax, dword [edi + 0x4090]
push 8
push eax
mov dword [edi + 0x4090], 0
call fcn.100133fe
add esp, 8
lea ecx, [edi + 0x407c]
call fcn.1000ea20
mov eax, dword [edi + 0x407c]
push 8
push eax
mov dword [edi + 0x407c], 0
call fcn.100133fe
add esp, 8
lea ecx, [edi + 0x60]
call fcn.1000cd20
lea ecx, [edi + 0x54]
call fcn.1000cd20
lea ecx, [edi + 0x48]
call fcn.1000cd20
mov ecx, dword [edi + 0x44]
cmp ecx, 8
jb 0x1000313e
mov eax, dword [edi + 0x30]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x10003134
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000316e
mov eax, edx
push ecx
push eax
call fcn.100133fe
add esp, 8
xor eax, eax
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 7
mov word [edi + 0x30], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100139b7
mov esp, ebp
pop ebp
ret
call fcn.1001e389
int3