Function at 0x87a027
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov ecx, dword [eax]
mov edi, dword [eax + 8]
mov dword [ebp - 0x28], ecx
mov ecx, eax
mov dword [ebp - 0x2c], edi
call fcn.008551d3
movzx ecx, byte [ebx + 0x2e]
sub ecx, 1
mov dword [ebp - 0x20], ecx
js 0x87a2e6
imul eax, ecx, 0x50
lea esi, [ebx + 0x324]
add esi, eax
mov dword [ebp - 0x24], esi
cmp byte [esi - 7], 0xa9
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x1c], edx
je 0x87a181
xor eax, eax
cmp byte [ebx + 0x33], 2
mov dword [ebp - 0x18], eax
jne 0x87a146
movzx eax, byte [ebx + 0x2e]
dec eax
cmp ecx, eax
jne 0x87a146
test dword [edx + 0x24], 0x200
je 0x87a146
mov eax, dword [edx + 0x20]
test byte [eax + 0x38], 0x80
je 0x87a146
movzx ecx, word [edx + 0x1e]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x87a146
mov eax, dword [eax + 8]
cmp word [eax + ecx*2], 0x24
jl 0x87a146
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x2c]
xor edx, edx
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x87a10c
mov ebx, ecx
add eax, edx
mov ecx, edi
push eax
push edx
push dword [esi - 0x2c]
push 0x62
pop edx
call fcn.00844cf3
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov eax, dword [ebp - 0x18]
inc edx
mov dword [ebp - 0xc], edx
cmp edx, ebx
jl 0x87a0e4
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
lea eax, [ecx + 1]
push 0x1b
add dword [edx + 0x2c], eax
cmp byte [esi - 7], 6
pop edx
push 0x18
pop eax
push ecx
push dword [ebp - 0x18]
cmove edx, eax
mov ecx, edi
push 0
push dword [esi - 0x2c]
call fcn.00844f6e
push dword [esi]
mov ecx, edi
mov dword [ebp - 0x18], eax
push 1
push 0xd
pop edx
call fcn.00844d77
add esp, 0x18
mov edx, dword [esi - 0x1c]
mov ecx, edi
call fcn.00844fff
movzx eax, byte [esi - 6]
movzx edx, byte [esi - 7]
push eax
push dword [esi]
push dword [esi - 4]
call fcn.00844cf3
movzx edx, byte [esi - 5]
add esp, 0xc
mov ecx, edi
call fcn.00845280
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x87a18b
mov edx, eax
call fcn.00845298
jmp 0x87a18b
mov edx, dword [esi - 0x1c]
mov ecx, edi
call fcn.00844fff
mov eax, dword [ebp - 0x1c]
test dword [eax + 0x24], 0x800
je 0x87a1ff
cmp dword [esi + 4], 0
jle 0x87a1ff
mov edx, dword [esi - 0x24]
mov ecx, edi
call fcn.00844fff
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
imul ecx, edx, 0xc
add eax, 0xfffffff4
mov dword [ebp - 0x14], edx
add eax, ecx
mov dword [ebp - 0x18], eax
test edx, edx
jle 0x87a1ff
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
mov ecx, edi
inc edx
call fcn.00845298
mov al, byte [ebx + 8]
cmp al, 0xa9
je 0x87a1e6
push dword [ebx + 4]
movzx edx, al
mov ecx, edi
push dword [ebx]
call fcn.00844d77
pop ecx
pop ecx
mov edx, dword [ebx + 4]
mov ecx, edi
dec edx
call fcn.00845298
dec esi
sub ebx, 0xc
test esi, esi
jg 0x87a1c3
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x10]
mov edx, dword [esi - 0x28]
mov ecx, edi
call fcn.00844fff
mov edx, dword [esi - 0x20]
test edx, edx
je 0x87a22c
call fcn.00844d8c
mov edx, dword [esi - 0x20]
mov ecx, edi
call fcn.00845298
mov edx, dword [esi - 0x20]
mov ecx, edi
sub edx, 2
call fcn.00845298
cmp dword [esi - 0xc], 0
je 0x87a247
push dword [esi - 0xc]
mov eax, dword [esi - 0x10]
mov ecx, edi
shr eax, 1
push eax
push 0x3b
pop edx
call fcn.00844d77
pop ecx
pop ecx
cmp dword [esi - 0x34], 0
je 0x87a2d1
push dword [esi - 0x34]
mov eax, dword [ebp - 0x1c]
mov ecx, edi
push 0x30
pop edx
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x1c], eax
call fcn.00844d63
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
pop ecx
test al, 0x40
jne 0x87a283
push dword [esi - 0x30]
mov ecx, edi
push 0x7e
pop edx
call fcn.00844d63
mov eax, dword [ebp - 0x1c]
pop ecx
test eax, 0x200
jne 0x87a297
test eax, 0x2000
je 0x87a2a5
cmp dword [esi + 4], 0
je 0x87a2a5
push dword [esi - 0x2c]
mov ecx, edi
push 0x7e
pop edx
call fcn.00844d63
pop ecx
cmp byte [esi - 7], 0x3f
mov ecx, edi
jne 0x87a2bf
push dword [esi - 0x18]
push dword [esi - 4]
push 0xe
pop edx
call fcn.00844d77
pop ecx
pop ecx
jmp 0x87a2c7
mov edx, dword [esi - 0x18]
call fcn.00844d8c
mov edx, dword [ebp - 0x24]
mov ecx, edi
call fcn.00845298
mov ecx, dword [ebp - 0x20]
sub esi, 0x50
dec ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ecx
test ecx, ecx
jns 0x87a070
mov edx, dword [ebx + 0x24]
mov ecx, edi
call fcn.00844fff
and dword [ebp - 0x20], 0
cmp byte [ebx + 0x2e], 0
jbe 0x87a421
mov edx, dword [ebp - 4]
lea esi, [ebx + 0x330]
movzx eax, byte [esi - 0x14]
imul eax, eax, 0x48
test byte [eax + edx + 0x30], 0x10
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi]
je 0x87a33a
mov ecx, dword [ebp - 8]
push 0
push dword [eax + edx + 0x28]
mov edx, dword [esi - 0x20]
push dword [esi - 0x3c]
call fcn.00875f76
add esp, 0xc
jmp 0x87a408
test dword [ecx + 0x24], 0x240
je 0x87a348
mov eax, dword [ecx + 0x20]
jmp 0x87a358
test dword [ecx + 0x24], 0x2000
je 0x87a40b
mov eax, dword [esi - 8]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x87a40b
cmp byte [ebx + 0x31], 0
je 0x87a376
mov eax, dword [eax + 0xc]
test byte [eax + 0x24], 0x20
je 0x87a40b
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0x49], 0
jne 0x87a40b
mov ecx, edi
call fcn.00845161
mov edx, dword [esi - 0x20]
mov dword [ebp - 0xc], eax
call fcn.0084556a
mov ecx, eax
mov eax, dword [ebp - 0xc]
cmp dword [esi - 0x20], eax
jge 0x87a408
sub eax, dword [esi - 0x20]
lea ebx, [ecx + 4]
mov dword [ebp - 0xc], eax
mov edi, eax
mov eax, dword [ebx]
cmp eax, dword [esi - 0x3c]
jne 0x87a3fa
mov al, byte [ebx - 4]
cmp al, 0x62
jne 0x87a3e4
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebx + 4]
test byte [eax + 0x24], 0x20
je 0x87a3d2
mov ecx, eax
call fcn.00859f5b
mov eax, dword [eax + 4]
movsx edx, word [eax + edx*2]
mov ecx, dword [ebp - 0x24]
call fcn.00859f73
cwde
test eax, eax
js 0x87a3fa
mov dword [ebx + 4], eax
jmp 0x87a3f5
cmp al, 0x7d
jne 0x87a3f1
mov eax, dword [esi - 0x38]
mov byte [ebx - 4], 0x84
jmp 0x87a3f8
cmp al, 0x17
jne 0x87a3fa
mov eax, dword [esi - 0x38]
mov dword [ebx], eax
add ebx, 0x14
sub edi, 1
jne 0x87a3aa
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
add esi, 0x50
movzx eax, byte [ebx + 0x2e]
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, eax
jl 0x87a307
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebp - 0x28]
mov dword [edx + 0x84], eax
mov edx, ebx
call fcn.00876aa8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret