Function at 0x88969c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, ecx
xor ecx, ecx
push ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], ecx
mov byte [esp + 7], cl
mov dword [esp + 0x44], ecx
mov ecx, dword [eax]
push esi
mov esi, edx
mov dword [esp + 0x24], ecx
push edi
mov ecx, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], eax
call fcn.008903a5
mov ebx, eax
movsx edx, word [esi + 0x2a]
xor eax, eax
mov dword [esp + 0x50], edx
lea edi, [esp + 0x5c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, esi
test byte [edi + 0x24], 0x20
jne 0x8896ff
and dword [esp + 0x14], 0
mov dword [esp + 0x3c], 1
jmp 0x889712
mov ecx, edi
call fcn.0088035b
mov dword [esp + 0x14], eax
movzx eax, word [eax + 0x32]
mov dword [esp + 0x3c], eax
xor esi, esi
mov dword [esp + 0x34], esi
test edx, edx
jle 0x889854
xor edx, edx
mov dword [esp + 0x2c], edx
movsx eax, word [edi + 0x28]
cmp esi, eax
je 0x88983e
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x889743
cmp dword [eax + esi*4], 0
jl 0x88983e
mov eax, dword [edi + 4]
movzx edi, byte [edx + eax + 0xc]
test edi, edi
je 0x88983a
mov cl, byte [ebp + 0x20]
push 2
cmp cl, 0xb
je 0x889763
movzx edi, cl
pop ecx
jmp 0x88976a
cmp edi, 0xb
pop ecx
cmove edi, ecx
cmp edi, 5
jne 0x889777
cmp dword [edx + eax + 4], 0
cmove edi, ecx
mov eax, edi
sub eax, 1
je 0x8897e2
sub eax, 1
je 0x8897d9
sub eax, 1
je 0x8897e2
sub eax, 1
mov ecx, ebx
mov eax, dword [ebp + 0x14]
je 0x8897c6
inc eax
add esi, eax
push esi
push 0x33
pop edx
call fcn.0086b163
pop ecx
mov ecx, dword [esp + 0x10]
mov edi, eax
mov eax, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x20]
mov edx, dword [esi + 4]
mov edx, dword [eax + edx + 4]
call fcn.0087c40b
pop ecx
mov edx, edi
mov ecx, ebx
call fcn.0086b698
jmp 0x889832
push dword [ebp + 0x24]
inc eax
add eax, esi
push eax
push 0x32
pop edx
call fcn.0086b177
pop ecx
pop ecx
jmp 0x889836
mov ecx, dword [esp + 0x10]
call fcn.00883905
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 4]
push dword [edx + eax]
push dword [esi]
push 0x4a4c04
push dword [esp + 0x34]
call fcn.00855557
mov ecx, dword [ebp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x44]
inc ecx
add eax, ecx
mov ecx, ebx
push eax
push edi
push 0x513
push 0x41
pop edx
call fcn.0086b0f3
add esp, 0x1c
mov edx, esi
mov ecx, ebx
push 0xfffffffffffffff9
call fcn.0086b91b
pop ecx
xor edx, edx
mov ecx, ebx
inc edx
call fcn.0086b680
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
inc esi
add edx, 0x10
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], edx
cmp esi, dword [esp + 0x50]
jl 0x889726
mov edx, dword [edi + 0x18]
mov dword [esp + 0x30], edx
test edx, edx
je 0x88994e
mov eax, dword [esp + 0x28]
test dword [eax + 0x1c], 0x200
jne 0x88994e
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x14]
cmp byte [ebp + 0x20], 0xb
not eax
push 2
mov dword [ecx + 0x38], eax
movzx eax, byte [ebp + 0x20]
pop esi
cmovne esi, eax
and dword [esp + 0x40], 0
cmp dword [edx], 0
jle 0x889946
lea eax, [edx + 8]
mov dword [esp + 0x34], eax
mov edx, dword [ebp + 0x2c]
mov ecx, dword [eax - 4]
mov dword [esp + 0x50], ecx
test edx, edx
je 0x8898c0
movzx eax, byte [ebp + 0x1c]
push eax
call fcn.00889619
pop ecx
test eax, eax
jne 0x889926
mov ecx, ebx
call fcn.0086b3bd
push 0x10
push eax
push dword [esp + 0x58]
mov dword [esp + 0x54], eax
push dword [esp + 0x1c]
call fcn.0087c713
add esp, 0x10
cmp esi, 4
jne 0x8898ef
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.0086b18c
jmp 0x88991b
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
jne 0x8898fb
mov eax, dword [edi]
push 2
pop ecx
push 3
cmp esi, 5
mov edx, 0x113
push 0
cmove esi, ecx
mov ecx, dword [esp + 0x18]
push eax
push esi
call fcn.00883912
add esp, 0x10
mov edx, dword [esp + 0x48]
mov ecx, ebx
call fcn.0086b3ff
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
inc edx
mov eax, dword [esp + 0x34]
add eax, 0x18
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], eax
cmp edx, dword [ecx]
jl 0x8898a3
mov eax, dword [esp + 0x10]
and dword [eax + 0x38], 0
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x889989
cmp dword [eax], 0
jne 0x889964
and dword [ebp + 0x30], 0
mov byte [ebp + 0x20], 4
jmp 0x889989
mov eax, dword [eax + 0x10]
mov dword [esp + 0x38], eax
test eax, eax
je 0x889989
mov ecx, ebx
call fcn.0086b3bd
mov ecx, ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
call fcn.0086b3bd
mov dword [esp + 0x68], eax
cmp byte [ebp + 0x1c], 0
je 0x889b85
cmp dword [esp + 0x14], 0
jne 0x889b85
mov ecx, ebx
call fcn.0086b3bd
mov dl, byte [ebp + 0x20]
mov ecx, eax
movzx esi, byte [edi + 0x30]
mov dword [esp + 0x34], ecx
cmp dl, 0xb
je 0x8899bc
movzx esi, dl
jmp 0x8899c5
push 2
cmp esi, 0xb
pop eax
cmove esi, eax
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x889a76
cmp dword [eax + 0x10], 0
jne 0x889a76
cmp dword [eax + 8], 0
jne 0x889a73
push 4
pop esi
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x889a14
push eax
push ecx
push dword [ebp + 0x14]
mov ecx, ebx
push 0x35
pop edx
call fcn.0086b0f3
add esp, 0xc
mov edx, 0x90
mov ecx, ebx
call fcn.0086b680
push dword [ebp + 0x14]
mov ecx, ebx
push dword [esp + 0x38]
push dword [ebp + 0xc]
push 0x20
pop edx
call fcn.0086b0f3
add esp, 0xc
test esi, esi
je 0x889b4a
cmp esi, 3
jbe 0x889b4f
cmp esi, 4
je 0x889a64
cmp esi, 5
je 0x889ab0
cmp esi, 6
jne 0x889b4a
push dword [ebp + 0xc]
mov edx, dword [ebp + 0x30]
mov ecx, dword [esp + 0x14]
push 0
push edi
call fcn.00896bd9
add esp, 0xc
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.0086b18c
jmp 0x889b5c
push 6
pop esi
cmp esi, 5
jb 0x8899e7
test eax, eax
jne 0x889a8e
movzx eax, dl
cmp esi, eax
je 0x8899e7
cmp dword [edi + 8], 0
je 0x8899e7
push 0xd
pop edx
mov ecx, ebx
call fcn.0086b155
mov ecx, dword [esp + 0x34]
inc eax
mov dword [esp + 0x5c], eax
jmp 0x8899eb
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov esi, dword [esp + 0x10]
mov dword [esp + 0x44], ecx
test dword [eax + 0x1c], 0x2000
je 0x889ae1
push ecx
push ecx
push 0x6e
mov edx, edi
mov ecx, esi
call fcn.00895123
add esp, 0xc
mov dword [esp + 0x44], eax
test eax, eax
jne 0x889b16
xor ecx, ecx
push ecx
push ecx
mov edx, edi
mov ecx, esi
call fcn.00887e43
pop ecx
pop ecx
test eax, eax
jne 0x889b16
cmp dword [edi + 8], eax
je 0x889b40
mov ecx, esi
call fcn.008838f8
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov edx, edi
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00885071
add esp, 0x10
jmp 0x889b40
mov ecx, esi
call fcn.008838f8
push 0xffffffffffffffff
push 1
push 5
push 0
push 1
push dword [ebp + 0x14]
mov edx, edi
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x64]
call fcn.00884ddc
add esp, 0x24
mov dword [esp + 0x44], 1
jmp 0x889b5c
push 2
pop eax
mov esi, eax
mov ecx, dword [esp + 0x10]
mov edx, esi
push edi
call fcn.00883a47
pop ecx
mov edx, dword [esp + 0x34]
mov ecx, ebx
call fcn.0086b3ff
mov esi, dword [esp + 0x30]
test esi, esi
je 0x889b85
push 0xd
pop edx
call fcn.0086b155
lea edx, [esi - 1]
mov dword [esp + 0x6c], eax
mov ecx, ebx
call fcn.0086b698
mov esi, dword [edi + 8]
and dword [esp + 0x18], 0
mov dword [esp + 0x50], esi
test esi, esi
je 0x88a0f0
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*4], 0
je 0x88a0dc
mov ecx, ebx
cmp dword [esp + 0x38], esi
jne 0x889bd2
mov eax, dword [esp + 0x68]
xor edx, edx
mov dword [esp + 0x24], eax
call fcn.0086b18c
mov edx, dword [esp + 0x64]
mov ecx, ebx
mov dword [esp + 0x4c], eax
call fcn.0086b3ff
jmp 0x889bdb
call fcn.0086b3bd
mov dword [esp + 0x24], eax
cmp byte [esp + 0xf], 0
jne 0x889bf6
mov ecx, dword [ebp + 0x14]
mov edx, edi
inc ecx
push ecx
mov ecx, ebx
call fcn.0088856b
pop ecx
mov byte [esp + 0xf], 1
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
add ecx, eax
cmp dword [esi + 0x24], 0
mov dword [esp + 0x30], ecx
je 0x889c46
mov ecx, dword [ebp + 8]
push dword [ecx + eax*4]
mov ecx, ebx
push 0
push 0x46
pop edx
call fcn.0086b177
mov ecx, dword [esp + 0x18]
add esp, 4
mov eax, dword [ebp + 0x14]
not eax
push dword [esp + 0x28]
mov dword [ecx + 0x38], eax
mov edx, dword [esi + 0x24]
call fcn.0087cc78
mov eax, dword [esp + 0x20]
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
and dword [ecx + 0x38], 0
jmp 0x889c4a
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
xor edi, edi
mov eax, dword [edx + eax*4]
xor edx, edx
inc eax
mov dword [esp + 0x40], edx
cmp di, word [esi + 0x34]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
jae 0x889cf3
and dword [esp + 0x20], edx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 4]
movsx edx, word [eax + edx*2]
cmp edx, 0xfffffffe
jne 0x889ca6
mov eax, dword [ebp + 0x14]
push dword [esp + 0x2c]
not eax
mov dword [ecx + 0x38], eax
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0x24]
mov edx, dword [edx + eax + 4]
call fcn.0087c453
pop ecx
mov ecx, dword [esp + 0x10]
and dword [ecx + 0x38], 0
jmp 0x889cd9
cmp edx, 0xffffffff
je 0x889cbb
movsx eax, word [edi + 0x28]
cmp edx, eax
je 0x889cbb
mov eax, dword [ebp + 0x14]
inc eax
add eax, edx
jmp 0x889cbe
mov eax, dword [ebp + 0x14]
push dword [esp + 0x2c]
sar edx, 0x1f
mov ecx, ebx
and edx, 1
push eax
add edx, 0x4c
call fcn.0086b177
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
add dword [esp + 0x20], 0x18
inc edx
movzx eax, word [esi + 0x34]
inc dword [esp + 0x2c]
mov dword [esp + 0x40], edx
cmp edx, eax
jl 0x889c73
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
push dword [ecx + eax*4]
movzx eax, word [esi + 0x34]
mov ecx, ebx
push eax
push dword [esp + 0x3c]
push 0x65
pop edx
call fcn.0086b0f3
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x889d35
cmp dword [esp + 0x14], esi
jne 0x889d35
cmp byte [ebp + 0x1c], 0
jne 0x889d35
mov edx, dword [esp + 0x24]
mov ecx, ebx
call fcn.0086b3ff
jmp 0x88a0d5
movzx eax, byte [esi + 0x36]
test eax, eax
je 0x889d25
mov cl, byte [ebp + 0x20]
cmp cl, 0xb
je 0x889d4a
movzx eax, cl
jmp 0x889d53
push 2
cmp eax, 0xb
pop ecx
cmove eax, ecx
mov dword [esp + 0x20], eax
cmp dword [esp + 0x38], esi
jne 0x889d76
mov eax, dword [ebp + 0x30]
cmp dword [eax + 8], 0
jne 0x889d6f
push 4
pop eax
mov dword [esp + 0x20], eax
jmp 0x889d8a
push 6
pop eax
mov dword [esp + 0x20], eax
cmp eax, 5
jne 0x889d8a
lea edx, [esp + 0x5c]
mov ecx, ebx
call fcn.0088965d
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x18], 0
jne 0x889ded
cmp dword [esi + 0x14], 0
jne 0x889ded
cmp dword [esp + 0x14], esi
jne 0x889ded
cmp eax, 5
jne 0x889ded
mov eax, dword [esp + 0x28]
test dword [eax + 0x1c], 0x2000
je 0x889dcb
mov ecx, dword [esp + 0x10]
mov edx, edi
push 0
push 0
push 0x6e
call fcn.00895123
add esp, 0xc
test eax, eax
jne 0x889ded
mov eax, dword [esp + 0x28]
test dword [eax + 0x1c], 0x4000
je 0x889d25
cmp dword [edi + 0x10], 0
jne 0x889ded
mov ecx, edi
call fcn.00887739
test eax, eax
je 0x889d25
mov ecx, dword [esp + 0x10]
call fcn.0087b3b4
movzx eax, word [esi + 0x32]
mov ecx, ebx
push eax
push dword [esp + 0x38]
push dword [esp + 0x2c]
push dword [esp + 0x3c]
push 0x1c
pop edx
call fcn.0086b36e
mov edx, dword [esp + 0x24]
add esp, 0x10
cmp esi, edx
jne 0x889e22
mov ecx, dword [esp + 0x34]
jmp 0x889e35
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
call fcn.0087d565
mov edx, dword [esp + 0x14]
mov ecx, eax
cmp dword [ebp + 0x18], 0
mov dword [esp + 0x2c], ecx
jne 0x889e4c
mov eax, dword [esp + 0x20]
cmp eax, 5
jne 0x889fc7
test byte [edi + 0x24], 0x20
jne 0x889e97
push ecx
push dword [esp + 0x34]
mov edx, 0x84
mov ecx, ebx
call fcn.0086b177
mov eax, dword [ebp + 0x18]
pop ecx
pop ecx
test eax, eax
je 0x889fc3
push eax
push dword [esp + 0x28]
mov ecx, ebx
push dword [esp + 0x34]
push 0x35
pop edx
call fcn.0086b0f3
add esp, 0xc
mov edx, 0x90
mov ecx, ebx
call fcn.0086b680
jmp 0x889fc3
cmp esi, edx
je 0x889ee6
and dword [esp + 0x48], 0
xor eax, eax
cmp ax, word [edx + 0x32]
jae 0x889ee6
mov edi, dword [esp + 0x48]
lea eax, [ecx + edi]
mov ecx, esi
push eax
mov eax, dword [edx + 4]
mov dx, word [eax + edi*2]
call fcn.00880373
cwde
mov ecx, ebx
push eax
push dword [esp + 0x38]
push 0x62
pop edx
call fcn.0086b0f3
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
inc edi
movzx eax, word [edx + 0x32]
cmp edi, eax
jl 0x889eac
mov edi, dword [esp + 0x1c]
cmp dword [ebp + 0x18], 0
je 0x889fc3
movzx edx, word [edx + 0x32]
mov ecx, ebx
call fcn.0086b561
mov ecx, dword [esi + 0x38]
add eax, edx
and cl, 3
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2c]
cmp cl, 2
mov dword [esp + 0x48], 0x34
cmove eax, dword [esp + 0x34]
xor ecx, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], ecx
test edx, edx
je 0x889fc3
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x20]
mov edx, dword [edx + ecx*4]
mov ecx, edi
call fcn.00880d4f
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov ecx, dword [ecx + 4]
movsx ecx, word [ecx + edx*2]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x14]
movzx ecx, word [ecx + 0x32]
dec ecx
cmp edx, ecx
jne 0x889f72
mov esi, dword [esp + 0x24]
mov dword [esp + 0x48], 0x35
mov ecx, dword [ebp + 0x18]
push 0xfffffffffffffffe
push eax
mov eax, dword [esp + 0x60]
inc ecx
add eax, edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x60]
add eax, ecx
mov ecx, ebx
push esi
push eax
call fcn.0086b23d
add esp, 0x14
mov edx, 0x90
mov ecx, ebx
call fcn.0086b680
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
inc ecx
mov dword [esp + 0x40], ecx
movzx eax, word [eax + 0x32]
cmp ecx, eax
jl 0x889f35
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x88a010
cmp eax, 3
jbe 0x889ffe
cmp eax, 4
je 0x889fef
cmp eax, 6
jne 0x88a010
push dword [esp + 0x30]
mov edx, dword [ebp + 0x30]
mov ecx, dword [esp + 0x14]
push esi
push edi
call fcn.00896bd9
add esp, 0xc
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.0086b18c
jmp 0x88a096
mov ecx, dword [esp + 0x10]
mov edx, eax
push esi
call fcn.0088395d
pop ecx
jmp 0x88a096
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov dword [esp + 0x48], ecx
test dword [eax + 0x1c], 0x2000
je 0x88a03f
push ecx
push ecx
mov ecx, dword [esp + 0x18]
mov edx, edi
push 0x6e
call fcn.00895123
add esp, 0xc
mov dword [esp + 0x48], eax
test eax, eax
jne 0x88a052
xor ecx, ecx
push ecx
push ecx
mov ecx, dword [esp + 0x18]
mov edx, edi
call fcn.00887e43
pop ecx
pop ecx
test eax, eax
je 0x88a05b
mov ecx, dword [esp + 0x10]
call fcn.008838f8
push dword [esp + 0x30]
cmp esi, dword [esp + 0x18]
mov edx, edi
mov ecx, dword [esp + 0x14]
sete al
movzx eax, al
push eax
push 5
push 0
push dword [esp + 0x4c]
push dword [esp + 0x40]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x68]
call fcn.00884ddc
add esp, 0x24
mov dword [esp + 0x44], 1
mov ecx, ebx
cmp dword [esp + 0x38], esi
jne 0x88a0a9
mov edx, dword [esp + 0x4c]
call fcn.0086b698
jmp 0x88a0b2
mov edx, dword [esp + 0x24]
call fcn.0086b3ff
mov ecx, dword [esp + 0x10]
call fcn.0087b3b8
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x34]
je 0x88a0d5
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.0087d59b
pop ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
mov esi, dword [esi + 0x14]
inc eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x18], eax
test esi, esi
jne 0x889ba0
lea edx, [esp + 0x5c]
mov ecx, ebx
call fcn.0088965d
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret