Function at 0x881439
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov dword [ebp - 0x28], edx
push esi
push edi
mov esi, dword [ebx]
mov dword [ebp - 0x1c], esi
jne 0x88145d
test eax, eax
je 0x8817f3
mov edi, dword [ebx + 0x1ac]
test edi, edi
je 0x8817f3
cmp byte [esi + 0x9d], 0
je 0x88149b
test eax, eax
je 0x88148a
push 0x49a1c0
push ebx
call fcn.00856054
pop ecx
pop ecx
jmp 0x8817f3
mov eax, dword [esi + 0x98]
mov dword [edi + 0x1c], eax
cmp eax, 1
jne 0x88149b
or dword [edi + 0x24], eax
test byte [ebp + 0xc], 0x20
je 0x8814d2
mov eax, dword [edi + 0x24]
test al, 8
je 0x8814af
push 0x4a4e4c
jmp 0x88147d
test al, 4
jne 0x8814c5
push dword [edi]
push 0x4a4e80
push ebx
call fcn.00856054
add esp, 0xc
jmp 0x8814d2
or eax, 0x60
mov edx, edi
mov dword [edi + 0x24], eax
call fcn.00881132
mov edx, dword [edi + 0x48]
mov ecx, esi
call fcn.0088e18e
cmp dword [edi + 0x18], 0
mov dword [ebp - 0xc], eax
je 0x8814f8
push dword [edi + 0x18]
mov edx, edi
mov ecx, ebx
push 0
push 4
call fcn.008786d4
add esp, 0xc
mov ecx, edi
call fcn.00881074
mov eax, dword [edi + 8]
test eax, eax
je 0x881519
mov esi, eax
mov ecx, esi
call fcn.008810b6
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x881508
mov esi, dword [ebp - 0x1c]
cmp byte [esi + 0x9d], 0
jne 0x8817a6
mov ecx, ebx
call fcn.008903a5
mov dword [ebp - 8], eax
test eax, eax
je 0x8817f3
push 0
push 0x72
pop edx
mov ecx, eax
call fcn.0086b163
mov eax, dword [edi + 0xc]
mov edx, 0x4a4ea8
test eax, eax
pop ecx
mov ecx, 0x4a4eb8
cmove ecx, edx
mov edx, 0x4a4ea0
mov dword [ebp - 0x20], ecx
mov ecx, 0x4a4eb0
cmove ecx, edx
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x24], ecx
je 0x8816da
inc dword [ebx + 0x2c]
mov ecx, ebx
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x10], eax
inc eax
mov dword [ebp - 0x18], eax
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebx + 0x2c], eax
call fcn.00883905
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push dword [ebx + 0x64]
push 1
push 0x6b
pop edx
call fcn.0086b0f3
mov ecx, dword [ebp - 8]
add esp, 0xc
push 0x10
pop edx
call fcn.0086b680
mov dword [ebx + 0x28], 2
call fcn.0086b561
inc eax
push eax
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
push 0xf
pop edx
call fcn.0086b0f3
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x8817f3
mov edx, dword [ebp + 0x10]
mov ecx, ebx
call fcn.008902fc
test eax, eax
je 0x8817f3
mov cx, word [eax + 0x2a]
mov edx, eax
mov word [edi + 0x2a], cx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
xor ecx, ecx
and dword [eax + 4], ecx
mov word [eax + 0x2a], cx
mov ecx, esi
call fcn.00880186
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
push esi
push 0xd
pop edx
call fcn.0088e7c5
mov edx, dword [ebp + 0x10]
add esp, 4
mov eax, ecx
mov ecx, ebx
push eax
call fcn.008931ac
cmp dword [ebx + 0x24], 0
pop ecx
jne 0x8817f3
mov edx, esi
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.0086b3a0
mov edx, dword [ebp - 0x20]
mov ecx, esi
lea edx, [edx - 1]
call fcn.0086b698
push dword [ebp - 0x3c]
mov ecx, esi
push 0x10
pop edx
call fcn.0086b163
pop ecx
push dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov esi, eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0x65
pop edx
call fcn.0086b0f3
mov ecx, dword [ebp - 8]
add esp, 0xc
mov edx, edi
push 0
call fcn.0088856b
pop ecx
push dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
push 1
push 0x75
pop edx
call fcn.0086b177
push dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
push dword [ebp - 0x18]
push 1
push 0x76
pop edx
call fcn.0086b0f3
mov ecx, dword [ebp - 8]
add esp, 0x14
mov edx, esi
call fcn.0086b18c
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.0086b698
mov ecx, dword [ebp - 8]
push 1
push 0x72
pop edx
call fcn.0086b163
mov esi, dword [ebp - 0x1c]
mov edx, edi
pop ecx
mov ecx, esi
call fcn.00880e6f
jmp 0x881714
cmp byte [ebp + 0xc], 0
lea eax, [ebx + 0x184]
mov edx, dword [ebp + 8]
cmovne edx, eax
mov eax, dword [edx]
mov ecx, eax
sub ecx, dword [ebx + 0x17c]
cmp byte [eax], 0x3b
je 0x8816fc
add ecx, dword [edx + 4]
push dword [ebx + 0x17c]
push ecx
push dword [ebp - 0x20]
push 0x4a4ec0
push esi
call fcn.00855557
add esp, 0x14
push dword [ebx + 0x60]
mov ecx, dword [ebp - 0xc]
push eax
push dword [ebx + 0x64]
mov dword [ebp - 0x1c], eax
push dword [edi]
mov eax, dword [esi + 0x10]
push dword [edi]
shl ecx, 4
push dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
push 0x4a3d18
push dword [eax + ecx]
push 0x4a4ed0
push ebx
call fcn.0087fbb9
mov edx, dword [ebp - 0x1c]
add esp, 0x28
mov ecx, esi
call fcn.00853d0a
mov edx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.00880d8e
test byte [edi + 0x24], 8
je 0x881780
mov ecx, dword [esi + 0x10]
add ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0xc]
cmp dword [eax + 0x48], 0
jne 0x881780
push dword [ecx]
push 0x4a4f28
push ebx
call fcn.0087fbb9
add esp, 0xc
push dword [edi]
push 0x4a4f54
push esi
call fcn.00855557
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp - 8]
push eax
call fcn.0086b332
cmp byte [esi + 0x9d], 0
pop ecx
je 0x8817f3
mov ecx, dword [edi + 0x48]
mov edx, dword [edi]
push edi
lea ecx, [ecx + 8]
call fcn.008574b0
pop ecx
test eax, eax
je 0x8817c2
mov ecx, esi
call fcn.00854184
jmp 0x8817f3
xor eax, eax
mov dword [ebx + 0x1ac], eax
or dword [esi + 0x18], 1
cmp dword [edi + 0xc], eax
jne 0x8817f3
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebx + 0x17c]
cmp dword [edx], eax
mov eax, dword [ebp + 8]
cmovne eax, edx
mov edx, dword [eax]
sub edx, ecx
call fcn.00855e4a
add eax, 0xd
mov dword [edi + 0x34], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret