Function at 0x10003700
Capabilities:
Terminate process
Terminate thread

Disassembly:
sub esp, 0x18
mov eax, dword [0x1004c258]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov byte [0x1004e540], 1
cmp dword [0x1004e54c], 0
push edi
mov edi, ecx
je 0x10003754
mov eax, dword [0x1004e54c]
push 0x1388
push eax
call ebx
test eax, eax
je 0x1000374a
mov eax, dword [0x1004e54c]
push 0
push eax
call esi
mov dword [0x1004e54c], 0
cmp dword [0x1004e548], 0
je 0x10003782
mov eax, dword [0x1004e548]
push 0x898
push eax
call ebx
test eax, eax
je 0x10003778
mov eax, dword [0x1004e548]
push 0
push eax
call esi
mov dword [0x1004e548], 0
cmp dword [0x1004e544], 0
je 0x100037b0
mov eax, dword [0x1004e544]
push 0xc8
push eax
call ebx
test eax, eax
je 0x100037a6
mov eax, dword [0x1004e544]
push 0
push eax
call esi
mov dword [0x1004e544], 0
mov eax, dword [edi + 0x416c]
test eax, eax
je 0x100037da
push 0xc8
push eax
call ebx
test eax, eax
je 0x100037d0
push 0
push dword [edi + 0x416c]
call esi
mov dword [edi + 0x416c], 0
cmp dword [0x1006c684], 0
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1000382a
lea eax, [esp + 0x1c]
push eax
mov eax, dword [0x1006c684]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1000380e
cmp dword [esp + 0x1c], 0x103
jne 0x10003818
mov eax, dword [0x1006c684]
push 0
push eax
call ebx
mov eax, dword [0x1006c684]
push eax
call esi
mov dword [0x1006c684], 0
cmp dword [0x1004e554], 0
je 0x1000386e
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x1004e554]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x10003852
cmp dword [esp + 0x18], 0x103
jne 0x1000385c
mov eax, dword [0x1004e554]
push 0
push eax
call ebx
mov eax, dword [0x1004e554]
push eax
call esi
mov dword [0x1004e554], 0
mov eax, dword [edi + 8]
test eax, eax
je 0x1000387f
push eax
call esi
mov dword [edi + 8], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10003890
push eax
call esi
mov dword [edi + 0xc], 0
mov eax, dword [edi + 0x10]
test eax, eax
je 0x100038a1
push eax
call esi
mov dword [edi + 0x10], 0
cmp dword [0x1004e550], 0
je 0x100038bc
mov eax, dword [0x1004e550]
push eax
call esi
mov dword [0x1004e550], 0
cmp dword [edi + 0x41b0], 8
jb 0x100038d3
push dword [edi + 0x419c]
call fcn.1000cef3
add esp, 4
xor eax, eax
mov dword [edi + 0x41b0], 7
mov dword [edi + 0x41ac], 0
mov word [edi + 0x419c], ax
mov edx, dword [edi + 0x4198]
sub edx, 0x10
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10003910
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0x4194], 8
jb 0x10003927
push dword [edi + 0x4180]
call fcn.1000cef3
add esp, 4
xor eax, eax
mov dword [edi + 0x4194], 7
mov dword [edi + 0x4190], 0
mov word [edi + 0x4180], ax
mov eax, dword [edi + 0x413c]
test eax, eax
je 0x1000398f
push dword [esp + 0x18]
lea ecx, [esp + 0x13]
push ecx
push dword [edi + 0x4140]
push eax
call fcn.10001630
push dword [edi + 0x413c]
call fcn.1000cef3
add esp, 0x14
mov dword [edi + 0x413c], 0
mov dword [edi + 0x4140], 0
mov dword [edi + 0x4144], 0
mov eax, dword [edi + 0x4130]
test eax, eax
je 0x100039da
push dword [esp + 0x18]
lea ecx, [esp + 0x17]
push ecx
push dword [edi + 0x4134]
push eax
call fcn.10001630
push dword [edi + 0x4130]
call fcn.1000cef3
add esp, 0x14
mov dword [edi + 0x4130], 0
mov dword [edi + 0x4134], 0
mov dword [edi + 0x4138], 0
mov eax, dword [edi + 0x4124]
test eax, eax
je 0x10003a25
push dword [esp + 0x18]
lea ecx, [esp + 0x15]
push ecx
push dword [edi + 0x4128]
push eax
call fcn.10001630
push dword [edi + 0x4124]
call fcn.1000cef3
add esp, 0x14
mov dword [edi + 0x4124], 0
mov dword [edi + 0x4128], 0
mov dword [edi + 0x412c], 0
cmp dword [edi + 0x4120], 8
jb 0x10003a3c
push dword [edi + 0x410c]
call fcn.1000cef3
add esp, 4
xor eax, eax
mov dword [edi + 0x4120], 7
mov dword [edi + 0x411c], 0
mov word [edi + 0x410c], ax
cmp dword [edi + 0x40f4], 8
jb 0x10003a70
push dword [edi + 0x40e0]
call fcn.1000cef3
add esp, 4
xor eax, eax
mov dword [edi + 0x40f4], 7
mov dword [edi + 0x40f0], 0
mov word [edi + 0x40e0], ax
mov eax, dword [edi + 0x40d0]
push eax
push dword [eax]
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x40d0]
call fcn.1000a110
push dword [edi + 0x40d0]
call fcn.1000cef3
add esp, 4
cmp dword [edi + 0x40bc], 8
jb 0x10003acb
push dword [edi + 0x40a8]
call fcn.1000cef3
add esp, 4
xor eax, eax
mov dword [edi + 0x40bc], 7
mov dword [edi + 0x40b8], 0
lea ecx, [edi + 0x4090]
mov word [edi + 0x40a8], ax
call fcn.10008e10
push dword [edi + 0x4090]
call fcn.1000cef3
add esp, 4
lea ecx, [edi + 0x407c]
mov dword [edi + 0x4090], 0
call fcn.10008e10
push dword [edi + 0x407c]
call fcn.1000cef3
mov dword [edi + 0x407c], 0
mov eax, dword [edi + 0x60]
add esp, 4
test eax, eax
je 0x10003b67
push dword [esp + 0x14]
lea ecx, [esp + 0x16]
push ecx
push dword [edi + 0x64]
push eax
call fcn.10001630
push dword [edi + 0x60]
call fcn.1000cef3
add esp, 0x14
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov eax, dword [edi + 0x54]
test eax, eax
je 0x10003ba0
push dword [esp + 0x14]
lea ecx, [esp + 0x12]
push ecx
push dword [edi + 0x58]
push eax
call fcn.10001630
push dword [edi + 0x54]
call fcn.1000cef3
add esp, 0x14
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov eax, dword [edi + 0x48]
test eax, eax
je 0x10003bd9
push dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
push dword [edi + 0x4c]
push eax
call fcn.10001630
push dword [edi + 0x48]
call fcn.1000cef3
add esp, 0x14
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
cmp dword [edi + 0x44], 8
jb 0x10003bea
push dword [edi + 0x30]
call fcn.1000cef3
add esp, 4
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [edi + 0x44], 7
mov dword [edi + 0x40], 0
mov word [edi + 0x30], ax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000f4a5
add esp, 0x18
ret