Function at 0x816aa0
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x7c
mov eax, dword [0xbd33e0]
mov ebp, edx
mov edi, ecx
xor eax, esp
mov dword [esp + 0x78], eax
mov ebx, dword [edx + 0x44]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x38], eax
call fcn.007f7590
mov esi, eax
mov eax, dword [ebp + 0x20]
mov ebp, ebx
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x34]
movsx ebx, word [ecx + 0x2a]
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.007fb640
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], esi
mov dword [esp + 4], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x50], eax
mov ecx, dword [ebp + 0x30]
lea eax, [ecx + 2]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x60], eax
lea eax, [ecx + 3]
mov dword [esp + 0x70], eax
mov al, byte [ebp + 0x11]
cmp al, 0x5a
je 0x816b95
cmp al, 0x56
jne 0x816bd2
cmp byte [ebp + 0x10], 0x59
mov esi, dword [esp + 4]
je 0x816bde
mov edx, dword [ebp + 0x18]
mov ecx, esi
call fcn.0082a1d0
test eax, eax
je 0x816bde
mov dword [esp + 0x5c], 1
jmp 0x816bde
mov ecx, ebp
call fcn.0082a230
mov esi, dword [esp + 4]
test eax, eax
jne 0x816bde
cmp byte [ebp + 0x12], 0x58
jne 0x816bc8
cmp byte [ebp + 0x10], 0x59
je 0x816bde
mov edx, dword [ebp + 0x1c]
mov ecx, esi
call fcn.0082a1d0
test eax, eax
je 0x816bde
mov dword [esp + 0x5c], 3
jmp 0x816bde
mov dword [esp + 0x5c], 1
jmp 0x816bde
mov esi, dword [esp + 4]
mov dword [esp + 0x5c], 2
mov edi, dword [esi + 0x2c]
lea edx, [edi + ebx + 2]
mov dword [esi + 0x2c], edx
mov cl, byte [ebp + 0x11]
cmp cl, 0x58
je 0x816bf9
xor eax, eax
cmp cl, 0x56
mov ecx, edx
jne 0x816c04
lea ecx, [edi + ebx]
add ecx, 3
mov eax, ecx
mov dword [esi + 0x2c], ecx
mov dword [esp + 0x40], edx
mov dl, byte [ebp + 0x12]
mov dword [esp + 8], eax
cmp dl, 0x58
je 0x816c23
cmp dl, 0x56
je 0x816c23
mov dword [esp + 0xc], 0
jmp 0x816c2b
inc ecx
mov dword [esi + 0x2c], ecx
mov dword [esp + 0xc], ecx
xor esi, esi
cmp byte [ebp + 0x10], 0x4c
lea eax, [edi + 1]
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], 0
mov dword [esp], eax
je 0x816caf
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], ebx
test eax, eax
jne 0x816c59
xor edx, edx
jmp 0x816c5b
mov edx, dword [eax]
mov eax, dword [ebp + 0x4c]
mov ebx, dword [ebp + 8]
add eax, dword [esp]
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x816c72
mov ebx, dword [esp + 0x18]
add eax, dword [ebx]
lea ebx, [edx + ecx + 1]
mov dword [esp + 0x20], eax
lea eax, [edx + ecx]
inc ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x64], ecx
lea ecx, [edx + eax + 1]
add eax, edx
lea ebx, [edx + eax + 1]
add eax, edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], ebx
add eax, edx
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0x1c]
mov dword [edx + 0x2c], eax
lea eax, [edi + ebx + 1]
mov dword [esp + 0x14], ebp
test bx, bx
mov edi, ebx
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
jle 0x816ce7
mov eax, dword [esp]
mov ecx, ebp
mov edx, 0x59
lea eax, [esi + eax]
push eax
push esi
push ebx
call fcn.007d10f0
add esp, 0xc
inc esi
cmp esi, edi
jne 0x816cca
mov eax, dword [esp + 0x28]
mov edx, 0x5b
mov ecx, ebp
inc eax
mov dword [esp + 0x24], eax
push dword [esp + 0x18]
push edi
mov ebx, dword [esp + 8]
push ebx
call fcn.007d10f0
add esp, 0xc
mov esi, dword [esp + 0x14]
mov edx, dword [esi + 8]
test edx, edx
jne 0x816d2b
mov edi, ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], 0
jmp 0x816dd6
mov edi, dword [esp + 4]
mov eax, dword [edx]
add ebx, dword [esi + 0x4c]
mov dword [esp + 0x3c], eax
mov dword [esp], ebx
mov ecx, edi
push 0
push 0
call fcn.008152a0
add esp, 8
mov ebp, dword [edi + 0x2c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov edx, 0x56
inc ebp
mov dword [edi + 0x2c], ebp
mov edi, dword [esp + 0x3c]
push edi
push dword [esi + 0x44]
push ebx
call fcn.007d10f0
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov ebx, eax
push 0xfffffffffffffff7
call fcn.007f7b70
add esp, 4
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 2]
add ebx, 4
mov edx, 0x10
push eax
push ebx
push eax
call fcn.007d10f0
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, 0xc
mov dword [esp + 0x1c], ebp
push ebp
call fcn.007f9600
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, edi
mov edx, 0x4d
dec eax
push eax
mov edi, dword [esp + 0x14]
push dword [esi + 0x44]
push dword [esp + 8]
call fcn.007d10f0
add esp, 0xc
mov ebx, dword [esp + 0x40]
mov ebp, esi
mov ecx, edi
mov edx, 0x78
push ebx
mov esi, dword [esp + 0x28]
push esi
call fcn.007d10d0
add esp, 8
mov ecx, edi
mov edx, 0x79
push ebx
push dword [esp + 0x1c]
push esi
call fcn.007d10f0
add esp, 0xc
mov ecx, edi
mov edx, 0x34
push ebx
push 0
push dword [ebp + 0x54]
call fcn.007d10f0
add esp, 0xc
mov esi, dword [esp + 4]
mov edx, ebp
mov dword [esp], eax
mov ecx, esi
call fcn.0082a3a0
mov ebx, dword [esp + 8]
mov edi, ebp
mov dword [esp + 0x58], eax
test ebx, ebx
je 0x816e60
mov edx, dword [edi + 0x18]
mov ecx, esi
push ebx
call fcn.007f7750
add esp, 4
xor eax, eax
cmp byte [edi + 0x10], 0x59
mov ecx, esi
mov edx, ebx
sete al
lea eax, [eax + eax*2]
push eax
call fcn.0082a6d0
add esp, 4
mov esi, dword [esp + 0xc]
test esi, esi
je 0x816e98
mov ebx, dword [esp + 4]
mov edx, dword [edi + 0x1c]
mov ecx, ebx
push esi
call fcn.007f7750
add esp, 4
xor eax, eax
cmp byte [edi + 0x10], 0x59
mov ecx, ebx
mov ebx, dword [esp + 8]
mov edx, esi
sete al
lea eax, [eax + eax*2 + 1]
push eax
call fcn.0082a6d0
add esp, 4
cmp byte [edi + 0x10], 0x59
mov ebp, dword [esp + 0x10]
je 0x816f40
mov al, byte [edi + 0x11]
test ebx, ebx
je 0x816f43
cmp al, byte [edi + 0x12]
jne 0x816f43
xor ecx, ecx
cmp al, 0x56
sete cl
lea edx, [ecx + ecx + 0x37]
mov ecx, ebp
push dword [esp + 0xc]
push 0
push ebx
call fcn.007d10f0
add esp, 0xc
lea ebx, [esp + 0x44]
xor edx, edx
mov dword [esp + 0x18], eax
mov ecx, ebx
call fcn.0082a900
mov ecx, ebp
mov edx, 0x25
push 1
push dword [esp + 0x6c]
call fcn.007d10d0
add esp, 8
mov ecx, ebx
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0x2c]
call fcn.0082aa20
mov eax, dword [esp + 0x68]
mov ecx, ebp
mov edx, 0x8a
mov dword [esp + 0x28], eax
push eax
call fcn.007f9600
add esp, 4
mov ecx, ebp
mov edx, 0xb
push esi
push 0
call fcn.007d10d0
add esp, 8
mov edx, dword [esp + 0x18]
mov ecx, ebp
call fcn.007f75c0
mov al, byte [edi + 0x11]
cmp al, 0x56
jne 0x816f6c
cmp dword [esp + 0xc], 0
je 0x816f70
cmp byte [edi + 0x10], 0x59
je 0x816f70
mov ecx, ebp
mov edx, 0x6a
push ebx
push dword [esp + 0x10]
push ebx
call fcn.007d10f0
add esp, 0xc
mov al, byte [edi + 0x11]
cmp al, 0x5a
je 0x816f85
mov ecx, ebp
mov edx, 0x25
push 1
push dword [esp + 0x64]
call fcn.007d10d0
add esp, 8
mov ecx, ebp
mov edx, 0x25
push 1
push dword [esp + 0x2c]
call fcn.007d10d0
add esp, 8
mov ecx, ebp
mov edx, 0x25
push 1
push dword [esp + 0x74]
call fcn.007d10d0
add esp, 8
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
test edi, edi
je 0x81701f
test esi, esi
je 0x81701f
mov eax, dword [edi]
mov ecx, ebp
mov edx, 0x4d
dec eax
push eax
push esi
push dword [esp + 0x28]
call fcn.007d10f0
add esp, 0xc
mov eax, dword [edi]
mov ecx, ebp
mov edx, 0x4d
dec eax
push eax
push dword [esp + 0x68]
push esi
call fcn.007d10f0
add esp, 0xc
mov eax, dword [edi]
mov ecx, ebp
mov edx, 0x4d
dec eax
push eax
push dword [esp + 0x70]
push esi
call fcn.007d10f0
add esp, 0xc
mov eax, dword [edi]
mov ecx, ebp
mov edx, 0x4d
dec eax
push eax
push dword [esp + 0x78]
push esi
call fcn.007d10f0
add esp, 0xc
mov ebx, dword [esp + 0x2c]
mov ecx, ebp
mov edx, 0xb
push ebx
push 0
call fcn.007d10d0
add esp, 8
mov edx, dword [esp]
mov ecx, ebp
call fcn.007f75c0
test esi, esi
je 0x817057
mov ecx, dword [esp + 4]
mov edx, edi
push ebx
push esi
push dword [esp + 0x28]
call fcn.0082b1c0
add esp, 0xc
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x90]
mov al, byte [ebx + 0x11]
cmp al, 0x56
jne 0x817156
lea ecx, [esp + 0x44]
mov edx, 3
push 0
push 0
call fcn.0082b260
add esp, 8
cmp byte [ebx + 0x12], 0x5a
mov ebp, dword [esp + 0x10]
mov edi, ebx
je 0x81731a
cmp byte [edi + 0x10], 0x59
jne 0x817123
mov ecx, dword [esp + 4]
call fcn.007fb640
mov ecx, ebp
mov ebx, eax
call fcn.007fdcb0
mov edi, esi
lea esi, [esp + 0x44]
mov dword [esp], eax
mov edx, 0x39
mov ecx, esi
push ebx
push dword [esp + 0x74]
push dword [esp + 0x14]
push dword [esp + 0x74]
call fcn.0082b5f0
add esp, 0x10
mov ecx, esi
mov edx, 2
push 0
push dword [esp + 0xc]
call fcn.0082b260
add esp, 8
mov ecx, esi
mov esi, edi
mov edi, dword [esp + 0x14]
mov edx, 1
push 0
push 0
call fcn.0082b260
add esp, 8
mov ecx, ebp
mov edx, 0xb
push dword [esp]
push 0
call fcn.007d10d0
add esp, 8
mov ecx, ebp
mov edx, ebx
call fcn.007fbd70
jmp 0x81731a
lea ebx, [esp + 0x44]
mov edx, 1
mov ecx, ebx
push 0
push dword [esp + 0x10]
call fcn.0082b260
add esp, 8
mov ecx, ebx
mov edx, 2
push 0
push dword [esp + 0xc]
call fcn.0082b260
add esp, 8
jmp 0x81731a
cmp byte [ebx + 0x12], 0x58
jne 0x8171e0
mov ebp, dword [esp + 0x10]
cmp al, 0x58
jne 0x8171b1
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x44]
mov edx, 3
mov bl, byte [edi + 0x10]
push 0
push dword [esp + 0x10]
call fcn.0082b260
add esp, 8
cmp bl, 0x59
jne 0x8171cc
lea ebx, [esp + 0x44]
mov edx, 2
mov ecx, ebx
push 0
push dword [esp + 0xc]
call fcn.0082b260
add esp, 8
mov ecx, ebx
mov edx, 1
push 0
push 0
jmp 0x817149
lea ecx, [esp + 0x44]
mov edx, 3
push 0
push dword [esp + 0x10]
call fcn.0082b260
add esp, 8
mov edi, dword [esp + 0x14]
lea ebx, [esp + 0x44]
mov edx, 1
mov ecx, ebx
push 0
push 0
jmp 0x817134
lea ecx, [esp + 0x44]
mov edx, 3
push 0
push 0
call fcn.0082b260
add esp, 8
cmp byte [ebx + 0x12], 0x5a
mov ebp, dword [esp + 0x10]
mov edi, ebx
je 0x81731a
cmp byte [edi + 0x10], 0x59
jne 0x8172b0
mov ecx, ebp
call fcn.007fdcb0
mov edi, dword [esp + 0xc]
mov ebx, esi
mov dword [esp], eax
test edi, edi
jne 0x81722d
mov dword [esp + 4], 0
jmp 0x817255
mov ecx, dword [esp + 4]
call fcn.007fb640
lea ecx, [esp + 0x44]
mov edx, 0x39
mov dword [esp + 4], eax
push eax
push dword [esp + 0x74]
push edi
push dword [esp + 0x74]
call fcn.0082b5f0
add esp, 0x10
lea esi, [esp + 0x44]
mov edx, 1
mov ecx, esi
push 0
push 0
call fcn.0082b260
add esp, 8
mov ecx, esi
mov edx, 2
push 0
push dword [esp + 0xc]
call fcn.0082b260
add esp, 8
test edi, edi
mov edi, dword [esp + 0x14]
mov esi, ebx
je 0x81731a
mov ecx, ebp
mov edx, 0xb
push dword [esp]
push 0
call fcn.007d10d0
add esp, 8
mov edx, dword [esp + 4]
mov ecx, ebp
call fcn.007fbd70
jmp 0x81731a
mov edi, dword [esp + 0xc]
mov ebx, esi
test edi, edi
jne 0x8172c3
mov dword [esp], 0
jmp 0x8172da
mov ecx, ebp
mov edx, 0x30
push 1
push 0
push edi
call fcn.007d10f0
add esp, 0xc
mov dword [esp], eax
lea esi, [esp + 0x44]
mov edx, 1
mov ecx, esi
push 0
push 0
call fcn.0082b260
add esp, 8
mov ecx, esi
mov edx, 2
push 0
push dword [esp + 0xc]
call fcn.0082b260
add esp, 8
test edi, edi
mov edi, dword [esp + 0x14]
mov esi, ebx
je 0x81731a
mov edx, dword [esp]
mov ecx, ebp
call fcn.007f75c0
mov edx, dword [esp + 0x2c]
mov ecx, ebp
call fcn.007fbd70
mov ecx, esi
call fcn.00817e60
cmp dword [edi + 8], 0
jne 0x81733b
mov dword [esp], 0
jmp 0x81735e
mov ecx, ebp
mov edx, 0x45
push dword [esp + 0x1c]
push 0
call fcn.007d10d0
add esp, 8
mov edx, dword [esp + 0x30]
mov ecx, ebp
mov dword [esp], eax
call fcn.007f75c0
mov ecx, ebp
mov edx, 0x25
push dword [esp + 0x24]
call fcn.007f9600
add esp, 4
mov bl, byte [edi + 0x11]
cmp byte [edi + 0x12], 0x58
jne 0x8173e4
mov esi, eax
cmp bl, 0x58
jne 0x8173b1
mov bl, byte [edi + 0x10]
lea ecx, [esp + 0x44]
mov edx, 3
push 0
push dword [esp + 0x10]
call fcn.0082b260
add esp, 8
cmp bl, 0x59
jne 0x8173c8
lea ecx, [esp + 0x44]
mov edx, 2
push 0
push dword [esp + 0xc]
jmp 0x8173c0
lea ecx, [esp + 0x44]
mov edx, 3
push 0
push dword [esp + 0x10]
call fcn.0082b260
add esp, 8
mov edx, 1
lea ecx, [esp + 0x44]
push 0
push 0
call fcn.0082b260
add esp, 8
mov edx, esi
jmp 0x817571
mov dword [esp + 4], eax
lea ecx, [esp + 0x44]
mov edx, 3
push 0
push 0
call fcn.0082b260
add esp, 8
cmp bl, 0x56
jne 0x817517
cmp byte [edi + 0x10], 0x59
jne 0x817447
mov ecx, ebp
call fcn.007fdcb0
lea edi, [esp + 0x44]
mov esi, eax
mov edx, 2
mov ecx, edi
push 1
push dword [esp + 0xc]
call fcn.0082b260
add esp, 8
mov ebx, eax
mov ecx, edi
mov edx, 1
push 1
push 0
call fcn.0082b260
add esp, 8
mov edi, eax
jmp 0x8174b2
mov bl, byte [edi + 0x12]
mov ecx, ebp
call fcn.007fdcb0
mov esi, eax
cmp bl, 0x5a
jne 0x817480
lea ebx, [esp + 0x44]
mov edx, 1
mov ecx, ebx
push 1
push dword [esp + 0xc]
call fcn.0082b260
add esp, 8
mov edi, eax
mov ecx, ebx
mov edx, 2
push 1
push 0
jmp 0x8174a8
lea ebx, [esp + 0x44]
mov edx, 1
mov ecx, ebx
push 1
push dword [esp + 0x10]
call fcn.0082b260
add esp, 8
mov edi, eax
mov ecx, ebx
mov edx, 2
push 1
push dword [esp + 0xc]
call fcn.0082b260
add esp, 8
mov ebx, eax
mov ecx, ebp
mov edx, 0xb
push esi
push 0
call fcn.007d10d0
add esp, 8
mov ecx, ebp
mov edx, ebx
call fcn.007f75c0
mov ecx, ebp
call fcn.007fdcb0
mov ebx, eax
lea ecx, [esp + 0x44]
mov edx, 1
push 1
push 0
call fcn.0082b260
add esp, 8
mov esi, eax
mov ecx, ebp
mov edx, 0xb
push ebx
push 0
call fcn.007d10d0
add esp, 8
mov ecx, ebp
mov edx, edi
call fcn.007f75c0
mov ecx, ebp
mov edx, esi
call fcn.007f75c0
mov edi, dword [esp + 0x14]
jmp 0x81756d
mov ecx, ebp
call fcn.007fdcb0
lea edi, [esp + 0x44]
mov esi, eax
mov edx, 1
mov ecx, edi
push 1
push 0
call fcn.0082b260
add esp, 8
mov ecx, edi
mov edi, dword [esp + 0x14]
mov ebx, eax
mov edx, 2
push 0
push dword [esp + 0xc]
call fcn.0082b260
add esp, 8
mov ecx, ebp
mov edx, 0xb
push esi
push 0
call fcn.007d10d0
add esp, 8
mov ecx, ebp
mov edx, ebx
call fcn.007f75c0
mov edx, dword [esp + 4]
mov ecx, ebp
call fcn.007f75c0
mov ecx, ebp
mov edx, 0x8a
push dword [esp + 0x68]
call fcn.007f9600
add esp, 4
cmp dword [edi + 8], 0
je 0x8175e6
mov eax, dword [edi + 0x58]
test eax, eax
je 0x8175be
mov ecx, ebp
mov edx, 0x45
push eax
push 1
call fcn.007d10d0
add esp, 8
mov ecx, ebp
mov edx, 0x45
push dword [edi + 0x5c]
push 0
call fcn.007d10d0
add esp, 8
mov ecx, ebp
call fcn.007fdcb0
mov edx, dword [esp]
mov ecx, ebp
push eax
call fcn.007fdd60
add esp, 4
mov ecx, ebp
mov edx, 0x41
push dword [esp + 0x1c]
call fcn.007f9600
add esp, 4
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00989fe9
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret