Function at 0x10004080
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10077346
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 [0x10092470], 1
cmp dword [0x1009247c], 0
je 0x100040ea
mov eax, dword [0x1009247c]
push 0x1388
push eax
call dword [0x100b0a94]
test eax, eax
je 0x100040e0
mov eax, dword [0x1009247c]
push 0
push eax
call dword [0x100b0a88]
mov dword [0x1009247c], 0
cmp dword [0x10092478], 0
je 0x10004120
mov eax, dword [0x10092478]
push 0x898
push eax
call dword [0x100b0a94]
test eax, eax
je 0x10004116
mov eax, dword [0x10092478]
push 0
push eax
call dword [0x100b0a88]
mov dword [0x10092478], 0
cmp dword [0x10092474], 0
je 0x10004156
mov eax, dword [0x10092474]
push 0xc8
push eax
call dword [0x100b0a94]
test eax, eax
je 0x1000414c
mov eax, dword [0x10092474]
push 0
push eax
call dword [0x100b0a88]
mov dword [0x10092474], 0
mov eax, dword [edi + 0x416c]
test eax, eax
je 0x10004188
push 0xc8
push eax
call dword [0x100b0a94]
test eax, eax
je 0x1000417e
push 0
push dword [edi + 0x416c]
call dword [0x100b0a88]
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 0x100041de
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x100b05b4]
push eax
call ecx
test eax, eax
je 0x100041bc
cmp dword [ebp - 0x18], 0x103
jne 0x100041c6
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 0x1000421c
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x10092484]
push eax
call ecx
test eax, eax
je 0x10004200
cmp dword [ebp - 0x14], 0x103
jne 0x1000420a
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 0x1000422d
push eax
call esi
mov dword [edi + 8], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1000423e
push eax
call esi
mov dword [edi + 0xc], 0
mov eax, dword [edi + 0x10]
test eax, eax
je 0x1000424f
push eax
call esi
mov dword [edi + 0x10], 0
cmp dword [0x10092480], 0
je 0x1000426a
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 0x10004286
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.1000d4a0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x1000429c
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 0x100042bf
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 0x100042db
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.1000d4a0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x100042f1
mov esi, dword [esi]
xor eax, eax
lea ebx, [edi + 0x413c]
mov word [esi], ax
mov eax, dword [ebx]
test eax, eax
je 0x10004347
push dword [ebp - 0x14]
push ebx
push dword [ebx + 4]
push eax
call fcn.10001d40
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.1000d500
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 0x1000439c
push dword [ebp - 0x14]
push ebx
push dword [ebx + 4]
push eax
call fcn.10001d40
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.1000d500
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 0x100043f1
push dword [ebp - 0x14]
push ebx
push dword [ebx + 4]
push eax
call fcn.10001d40
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.1000d500
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
lea ecx, [edi + 0x40e0]
call fcn.10004610
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.1000d650
push dword [edi + 0x40d0]
call fcn.10014d16
mov eax, dword [edi + 0x40bc]
lea esi, [edi + 0x40a8]
add esp, 4
cmp eax, 8
jb 0x10004445
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.1000d4a0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x1000445b
mov esi, dword [esi]
xor eax, eax
lea ecx, [edi + 0x4090]
mov word [esi], ax
call fcn.1000c060
push dword [edi + 0x4090]
call fcn.10014d16
add esp, 4
mov dword [edi + 0x4090], 0
lea ecx, [edi + 0x407c]
call fcn.1000c060
push dword [edi + 0x407c]
call fcn.10014d16
lea ebx, [edi + 0x60]
mov dword [edi + 0x407c], 0
mov eax, dword [ebx]
add esp, 4
test eax, eax
je 0x100044f4
push dword [ebp - 0x1c]
push ebx
push dword [ebx + 4]
push eax
call fcn.10001d40
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.1000d500
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 0x10004543
push dword [ebp - 0x1c]
push ebx
push dword [ebx + 4]
push eax
call fcn.10001d40
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.1000d500
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 0x10004592
push dword [ebp - 0x1c]
push ebx
push dword [ebx + 4]
push ecx
call fcn.10001d40
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.1000d500
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [edi + 0x44]
cmp eax, 8
jb 0x100045a7
inc eax
lea ecx, [edi + 0x30]
push eax
push dword [edi + 0x30]
call fcn.1000d4a0
mov dword [edi + 0x44], 7
cmp dword [edi + 0x44], 8
mov dword [edi + 0x40], 0
jb 0x100045c5
mov eax, dword [edi + 0x30]
xor ecx, ecx
mov word [eax], cx
jmp 0x100045cb
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.100153dc
mov esp, ebp
pop ebp
ret