Function at 0x1003c110
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044a38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1005600c]
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 [0x10058a1b], 1
cmp dword [0x10058c28], 0
je 0x1003c17e
mov eax, dword [0x10058c28]
push 0x1388
push eax
call ebx
test eax, eax
je 0x1003c174
mov eax, dword [0x10058c28]
push 0
push eax
call esi
mov dword [0x10058c28], 0
cmp dword [0x10058c2c], 0
je 0x1003c1ac
mov eax, dword [0x10058c2c]
push 0x898
push eax
call ebx
test eax, eax
je 0x1003c1a2
mov eax, dword [0x10058c2c]
push 0
push eax
call esi
mov dword [0x10058c2c], 0
cmp dword [0x10058c30], 0
je 0x1003c1da
mov eax, dword [0x10058c30]
push 0xc8
push eax
call ebx
test eax, eax
je 0x1003c1d0
mov eax, dword [0x10058c30]
push 0
push eax
call esi
mov dword [0x10058c30], 0
mov eax, dword [edi + 0x416c]
test eax, eax
je 0x1003c204
push 0xc8
push eax
call ebx
test eax, eax
je 0x1003c1fa
push 0
push dword [edi + 0x416c]
call esi
mov dword [edi + 0x416c], 0
cmp dword [0x10058a1c], 0
mov ecx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1003c25a
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x10058a1c]
push eax
call ecx
test eax, eax
je 0x1003c238
cmp dword [ebp - 0x18], 0x103
jne 0x1003c242
mov eax, dword [0x10058a1c]
push 0
push eax
call ebx
mov eax, dword [0x10058a1c]
push eax
call esi
mov ecx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [0x10058a1c], 0
cmp dword [0x10058c20], 0
je 0x1003c298
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x10058c20]
push eax
call ecx
test eax, eax
je 0x1003c27c
cmp dword [ebp - 0x14], 0x103
jne 0x1003c286
mov eax, dword [0x10058c20]
push 0
push eax
call ebx
mov eax, dword [0x10058c20]
push eax
call esi
mov dword [0x10058c20], 0
mov eax, dword [edi + 8]
test eax, eax
je 0x1003c2a9
push eax
call esi
mov dword [edi + 8], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1003c2ba
push eax
call esi
mov dword [edi + 0xc], 0
mov eax, dword [edi + 0x10]
test eax, eax
je 0x1003c2cb
push eax
call esi
mov dword [edi + 0x10], 0
cmp dword [0x10058c24], 0
je 0x1003c2e6
mov eax, dword [0x10058c24]
push eax
call esi
mov dword [0x10058c24], 0
mov eax, dword [edi + 0x41b0]
lea esi, [edi + 0x419c]
cmp eax, 8
jb 0x1003c302
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.10003220
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x1003c318
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
or eax, 0xffffffff
mov ecx, dword [edi + 0x4198]
sub ecx, 0x10
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1003c356
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x1004db28
jne 0x1003c352
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1003c356
mov ecx, edx
call esi
mov eax, dword [edi + 0x4194]
lea esi, [edi + 0x4180]
cmp eax, 8
jb 0x1003c372
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.10003220
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x1003c388
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov ecx, dword [edi + 0x413c]
test ecx, ecx
je 0x1003c3ed
push dword [ebp - 0x14]
mov edx, dword [edi + 0x4140]
push ecx
call fcn.100047c0
mov esi, dword [edi + 0x413c]
mov eax, 0x2aaaaaab
mov ecx, dword [edi + 0x4144]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.100030c0
mov dword [edi + 0x413c], 0
mov dword [edi + 0x4140], 0
mov dword [edi + 0x4144], 0
mov ecx, dword [edi + 0x4130]
test ecx, ecx
je 0x1003c44d
push dword [ebp - 0x14]
mov edx, dword [edi + 0x4134]
push ecx
call fcn.100047c0
mov esi, dword [edi + 0x4130]
mov eax, 0x2aaaaaab
mov ecx, dword [edi + 0x4138]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.100030c0
mov dword [edi + 0x4130], 0
mov dword [edi + 0x4134], 0
mov dword [edi + 0x4138], 0
mov ecx, dword [edi + 0x4124]
test ecx, ecx
je 0x1003c4ad
push dword [ebp - 0x14]
mov edx, dword [edi + 0x4128]
push ecx
call fcn.100047c0
mov esi, dword [edi + 0x4124]
mov eax, 0x2aaaaaab
mov ecx, dword [edi + 0x412c]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.100030c0
mov dword [edi + 0x4124], 0
mov dword [edi + 0x4128], 0
mov dword [edi + 0x412c], 0
lea ecx, [edi + 0x40e0]
call fcn.10001330
mov eax, dword [edi + 0x40d0]
lea ecx, [edi + 0x40d0]
push eax
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.10002f10
push dword [edi + 0x40d0]
call fcn.10006f43
mov eax, dword [edi + 0x40bc]
lea esi, [edi + 0x40a8]
add esp, 4
cmp eax, 8
jb 0x1003c4fa
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.10003220
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x1003c510
mov esi, dword [esi]
xor eax, eax
lea ecx, [edi + 0x4090]
mov word [esi], ax
call fcn.10002020
push dword [edi + 0x4090]
call fcn.10006f43
add esp, 4
mov dword [edi + 0x4090], 0
lea ecx, [edi + 0x407c]
call fcn.10002020
push dword [edi + 0x407c]
call fcn.10006f43
mov dword [edi + 0x407c], 0
add esp, 4
mov ecx, dword [edi + 0x60]
test ecx, ecx
je 0x1003c5a6
push dword [ebp - 0x1c]
mov edx, dword [edi + 0x64]
push ecx
call fcn.100047c0
mov esi, dword [edi + 0x60]
mov eax, 0x2aaaaaab
mov ecx, dword [edi + 0x68]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.100030c0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov ecx, dword [edi + 0x54]
test ecx, ecx
je 0x1003c5f1
push dword [ebp - 0x1c]
mov edx, dword [edi + 0x58]
push ecx
call fcn.100047c0
mov esi, dword [edi + 0x54]
mov eax, 0x2aaaaaab
mov ecx, dword [edi + 0x5c]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.100030c0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x1003c63c
push dword [ebp - 0x1c]
mov edx, dword [edi + 0x4c]
push ecx
call fcn.100047c0
mov esi, dword [edi + 0x48]
mov eax, 0x2aaaaaab
mov ecx, dword [edi + 0x50]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.100030c0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov eax, dword [edi + 0x44]
cmp eax, 8
jb 0x1003c651
inc eax
lea ecx, [edi + 0x30]
push eax
push dword [edi + 0x30]
call fcn.10003220
mov dword [edi + 0x44], 7
cmp dword [edi + 0x44], 8
mov dword [edi + 0x40], 0
jb 0x1003c66f
mov eax, dword [edi + 0x30]
xor ecx, ecx
mov word [eax], cx
jmp 0x1003c675
xor eax, eax
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.10006f48
mov esp, ebp
pop ebp
ret