Function at 0x100040a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10077356
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100900d4]
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 byte [0x10092471], 1
cmp dword [0x1009247c], 0
je 0x1000410a
mov eax, dword [0x1009247c]
push 0x1388
push eax
call dword [0x100b0a9c]
test eax, eax
je 0x10004100
mov eax, dword [0x1009247c]
push 0
push eax
call dword [0x100b0a90]
mov dword [0x1009247c], 0
cmp dword [0x10092478], 0
je 0x10004140
mov eax, dword [0x10092478]
push 0x898
push eax
call dword [0x100b0a9c]
test eax, eax
je 0x10004136
mov eax, dword [0x10092478]
push 0
push eax
call dword [0x100b0a90]
mov dword [0x10092478], 0
cmp dword [0x10092474], 0
je 0x10004176
mov eax, dword [0x10092474]
push 0xc8
push eax
call dword [0x100b0a9c]
test eax, eax
je 0x1000416c
mov eax, dword [0x10092474]
push 0
push eax
call dword [0x100b0a90]
mov dword [0x10092474], 0
mov eax, dword [edi + 0x416c]
test eax, eax
je 0x100041a8
push 0xc8
push eax
call dword [0x100b0a9c]
test eax, eax
je 0x1000419e
push 0
push dword [edi + 0x416c]
call dword [0x100b0a90]
mov dword [edi + 0x416c], 0
cmp dword [0x100b05b4], 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 0x100041fe
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x100b05b4]
push eax
call ecx
test eax, eax
je 0x100041dc
cmp dword [ebp - 0x18], 0x103
jne 0x100041e6
mov eax, dword [0x100b05b4]
push 0
push eax
call ebx
mov eax, dword [0x100b05b4]
push eax
call esi
mov ecx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [0x100b05b4], 0
cmp dword [0x10092484], 0
je 0x1000423c
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x10092484]
push eax
call ecx
test eax, eax
je 0x10004220
cmp dword [ebp - 0x14], 0x103
jne 0x1000422a
mov eax, dword [0x10092484]
push 0
push eax
call ebx
mov eax, dword [0x10092484]
push eax
call esi
mov dword [0x10092484], 0
mov eax, dword [edi + 8]
test eax, eax
je 0x1000424d
push eax
call esi
mov dword [edi + 8], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1000425e
push eax
call esi
mov dword [edi + 0xc], 0
mov eax, dword [edi + 0x10]
test eax, eax
je 0x1000426f
push eax
call esi
mov dword [edi + 0x10], 0
cmp dword [0x10092480], 0
je 0x1000428a
mov eax, dword [0x10092480]
push eax
call esi
mov dword [0x10092480], 0
mov eax, dword [edi + 0x41b0]
lea esi, [edi + 0x419c]
cmp eax, 8
jb 0x100042a6
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.1000d4c0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x100042bc
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
or eax, 0xffffffff
mov edx, dword [edi + 0x4198]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100042df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x4194]
lea esi, [edi + 0x4180]
cmp eax, 8
jb 0x100042fb
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.1000d4c0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x10004311
mov esi, dword [esi]
xor eax, eax
lea ebx, [edi + 0x413c]
mov word [esi], ax
mov eax, dword [ebx]
test eax, eax
je 0x10004367
push dword [ebp - 0x14]
push ebx
push dword [ebx + 4]
push eax
call fcn.10001d60
mov esi, dword [ebx]
mov eax, 0x2aaaaaab
mov ecx, dword [ebx + 8]
add esp, 0x10
sub ecx, esi
imul ecx
mov ecx, ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.1000d520
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [edi + 0x4130]
lea ebx, [edi + 0x4130]
test eax, eax
je 0x100043bc
push dword [ebp - 0x14]
push ebx
push dword [ebx + 4]
push eax
call fcn.10001d60
mov esi, dword [ebx]
mov eax, 0x2aaaaaab
mov ecx, dword [ebx + 8]
add esp, 0x10
sub ecx, esi
imul ecx
mov ecx, ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.1000d520
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [edi + 0x4124]
lea ebx, [edi + 0x4124]
test eax, eax
je 0x10004411
push dword [ebp - 0x14]
push ebx
push dword [ebx + 4]
push eax
call fcn.10001d60
mov esi, dword [ebx]
mov eax, 0x2aaaaaab
mov ecx, dword [ebx + 8]
add esp, 0x10
sub ecx, esi
imul ecx
mov ecx, ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.1000d520
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
lea ecx, [edi + 0x40e0]
call fcn.10004630
mov eax, dword [edi + 0x40d0]
lea ecx, [edi + 0x40d0]
push eax
mov dword [ebp - 4], 0
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.1000d670
push dword [edi + 0x40d0]
call fcn.10014d28
mov eax, dword [edi + 0x40bc]
lea esi, [edi + 0x40a8]
add esp, 4
cmp eax, 8
jb 0x10004465
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.1000d4c0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x1000447b
mov esi, dword [esi]
xor eax, eax
lea ecx, [edi + 0x4090]
mov word [esi], ax
call fcn.1000c080
push dword [edi + 0x4090]
call fcn.10014d28
add esp, 4
mov dword [edi + 0x4090], 0
lea ecx, [edi + 0x407c]
call fcn.1000c080
push dword [edi + 0x407c]
call fcn.10014d28
lea ebx, [edi + 0x60]
mov dword [edi + 0x407c], 0
mov eax, dword [ebx]
add esp, 4
test eax, eax
je 0x10004514
push dword [ebp - 0x1c]
push ebx
push dword [ebx + 4]
push eax
call fcn.10001d60
mov esi, dword [ebx]
mov eax, 0x2aaaaaab
mov ecx, dword [ebx + 8]
add esp, 0x10
sub ecx, esi
imul ecx
mov ecx, ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.1000d520
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [edi + 0x54]
lea ebx, [edi + 0x54]
test eax, eax
je 0x10004563
push dword [ebp - 0x1c]
push ebx
push dword [ebx + 4]
push eax
call fcn.10001d60
mov esi, dword [ebx]
mov eax, 0x2aaaaaab
mov ecx, dword [ebx + 8]
add esp, 0x10
sub ecx, esi
imul ecx
mov ecx, ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.1000d520
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov ecx, dword [edi + 0x48]
lea ebx, [edi + 0x48]
test ecx, ecx
je 0x100045b2
push dword [ebp - 0x1c]
push ebx
push dword [ebx + 4]
push ecx
call fcn.10001d60
mov esi, dword [ebx]
mov eax, 0x2aaaaaab
mov ecx, dword [ebx + 8]
add esp, 0x10
sub ecx, esi
imul ecx
mov ecx, ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.1000d520
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [edi + 0x44]
cmp eax, 8
jb 0x100045c7
inc eax
lea ecx, [edi + 0x30]
push eax
push dword [edi + 0x30]
call fcn.1000d4c0
mov dword [edi + 0x44], 7
cmp dword [edi + 0x44], 8
mov dword [edi + 0x40], 0
jb 0x100045e5
mov eax, dword [edi + 0x30]
xor ecx, ecx
mov word [eax], cx
jmp 0x100045eb
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.100153ee
mov esp, ebp
pop ebp
ret