Function at 0x820920
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [edx]
movzx ebx, byte [edx + 0x20]
mov ebp, ecx
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x40]
mov ecx, dword [eax]
and ebx, 1
mov dword [esp], ebx
xor ebx, 1
mov dword [esp + 8], ebx
mov eax, ecx
mov dword [esp + 0xc], ecx
lea ecx, [ecx + ebx]
mov eax, dword [ebp + 8]
mov ebx, edx
mov edx, dword [edx + 4]
add ecx, dword [esp + 0x4c]
test esi, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], edx
je 0x820973
mov eax, dword [esp + 0x44]
sub eax, esi
mov dword [esp + 4], eax
jmp 0x820986
mov eax, dword [ebp + 0x2c]
mov edi, dword [esp + 0x40]
lea edx, [eax + 1]
add eax, ecx
mov dword [esp + 4], edx
mov dword [ebp + 0x2c], eax
mov eax, dword [edi + 0xc]
mov esi, ebx
mov dword [esp + 0x10], ecx
test eax, eax
je 0x820996
inc eax
jmp 0x820999
mov eax, dword [edi + 8]
mov ecx, ebp
mov dword [esp + 0x20], eax
mov edi, ebp
call fcn.007efdc0
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x48]
mov ecx, ebp
mov edx, dword [esi]
test eax, eax
mov ebx, eax
setne al
shl al, 2
or al, 1
movzx eax, al
push eax
push ebx
push dword [esp + 0xc]
call fcn.007eeeb0
add esp, 0xc
cmp byte [esp], 0
mov edi, dword [esp + 0x24]
jne 0x8209f6
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, 0x77
lea eax, [eax + ecx]
mov ecx, edi
push eax
push dword [esi + 8]
call fcn.007c57e0
add esp, 8
cmp dword [esp + 0x4c], 0
jle 0x820a26
cmp dword [esp + 0x50], 0
jne 0x820a26
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x44]
lea eax, [eax + ecx]
mov ecx, ebp
add eax, dword [esp + 8]
push dword [esp + 0x4c]
push eax
call fcn.0080d190
add esp, 8
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 4]
mov eax, 0
mov dword [esp + 8], 0
jle 0x820bc8
mov ecx, ebp
mov edx, esi
push dword [esp + 0x10]
push ebx
push dword [esp + 0x48]
call fcn.00820cc0
add esp, 0xc
mov ecx, dword [ebp + 0x2c]
mov dword [esp + 0x1c], eax
lea edx, [ecx + 1]
add ecx, dword [esi + 4]
cmp byte [esp], 0
mov dword [esp + 0x18], edx
mov dword [ebp + 0x2c], ecx
mov ecx, dword [esi + 4]
mov dword [esp], ecx
jne 0x820a88
mov eax, dword [esp + 0xc]
mov ecx, edi
mov edx, 0x14
lea eax, [ebx + eax]
push eax
jmp 0x820a92
mov ecx, edi
mov edx, 0x71
push dword [esi + 8]
call fcn.007edd80
add esp, 4
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov ecx, edi
mov edx, 0x56
push dword [esi + 4]
push ebx
push eax
call fcn.007c5800
add esp, 0xc
mov edx, dword [esi + 0x14]
mov ecx, edi
call fcn.007ebf40
mov ecx, dword [ebp]
mov ebx, eax
cmp byte [ecx + 0x51], 0
jne 0x820cb6
mov eax, dword [esp + 0x10]
sub eax, dword [esp]
mov dword [ebx + 8], eax
mov edi, dword [ebx + 0x10]
movzx eax, word [edi + 6]
push eax
push 0
push dword [edi + 0x10]
call fcn.00980a60
add esp, 0xc
mov ecx, dword [esp + 0x24]
mov edx, 0xffffffff
push 0xfffffffffffffff7
push edi
call fcn.00782820
add esp, 8
movzx eax, word [edi + 8]
movzx edi, word [edi + 6]
mov edx, dword [esi]
mov ecx, ebp
not edi
add edi, eax
push edi
mov edi, dword [esp + 0x28]
push dword [esp + 0x18]
call fcn.00809a50
add esp, 8
mov ecx, edi
mov dword [ebx + 0x10], eax
call fcn.007f2430
mov dword [esp], eax
inc eax
mov ecx, edi
mov edx, 0x10
push eax
push 0
push eax
call fcn.007c5800
add esp, 0xc
mov ecx, ebp
call fcn.007efdc0
mov dword [esi + 0x10], eax
mov ecx, edi
mov edx, 0xc
mov eax, dword [ebp + 0x2c]
inc eax
mov dword [ebp + 0x2c], eax
mov dword [esi + 0xc], eax
push dword [esi + 0x10]
push eax
call fcn.007c57e0
add esp, 8
mov ecx, edi
mov edx, 0x8a
push dword [esi + 8]
call fcn.007edd80
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x820b98
mov ecx, edi
mov edx, 0x14
push dword [esi + 0x18]
push eax
call fcn.007c57e0
add esp, 8
mov edx, dword [esp + 0x28]
mov ecx, edi
call fcn.007ebd40
mov ebx, dword [esp + 4]
mov ecx, ebp
mov edx, ebx
push dword [esi + 4]
push dword [esp + 0x1c]
call fcn.0080d190
add esp, 8
mov edx, dword [esp]
mov ecx, edi
call fcn.007ebd40
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test edx, edx
je 0x820c4e
mov dword [esp], ebp
mov ebp, dword [esi + 8]
mov ecx, edi
mov dword [esp + 0x1c], eax
mov ebx, edx
call fcn.007f2430
add eax, 4
mov ecx, edi
mov edx, 0x31
push eax
push ebx
call fcn.007c57e0
add esp, 8
mov ecx, edi
mov edx, 0x21
push 0
push ebp
call fcn.007c57e0
add esp, 8
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 4]
mov edx, 0x26
sub ebx, ecx
lea eax, [eax + ecx]
mov ecx, edi
push ebx
push eax
push 0
push ebp
call fcn.007826e0
add esp, 0x10
mov dword [esp + 8], eax
mov ecx, edi
mov edx, 0x7a
push ebp
mov ebp, dword [esp + 4]
mov ebx, dword [esp + 8]
call fcn.007edd80
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
jne 0x820c67
mov ecx, ebp
mov edx, esi
push dword [esp + 0x10]
push ebx
push dword [esp + 0x48]
call fcn.00820cc0
add esp, 0xc
movzx edx, byte [esi + 0x20]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
and edx, 1
sub ebp, ecx
add ebx, ecx
mov ecx, edi
xor edx, 0x83
push ebp
push ebx
push eax
push dword [esi + 8]
call fcn.007826e0
add esp, 0x10
cmp dword [esp + 8], 0
je 0x820cb6
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x820ca5
mov ecx, edi
call fcn.007f2430
mov edx, dword [esp + 8]
mov ecx, edi
push eax
call fcn.007ebf30
add esp, 0x30
jmp 0x820cb9
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret