Function at 0x82c160
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 0x82c1b3
mov eax, dword [esp + 0x44]
sub eax, esi
mov dword [esp + 4], eax
jmp 0x82c1c6
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 0x82c1d6
inc eax
jmp 0x82c1d9
mov eax, dword [edi + 8]
mov ecx, ebp
mov dword [esp + 0x20], eax
mov edi, ebp
call fcn.007fb640
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.007fa730
add esp, 0xc
cmp byte [esp], 0
mov edi, dword [esp + 0x24]
jne 0x82c236
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.007d10d0
add esp, 8
cmp dword [esp + 0x4c], 0
jle 0x82c266
cmp dword [esp + 0x50], 0
jne 0x82c266
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.008189c0
add esp, 8
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 4]
mov eax, 0
mov dword [esp + 8], 0
jle 0x82c408
mov ecx, ebp
mov edx, esi
push dword [esp + 0x10]
push ebx
push dword [esp + 0x48]
call fcn.0082c500
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 0x82c2c8
mov eax, dword [esp + 0xc]
mov ecx, edi
mov edx, 0x14
lea eax, [ebx + eax]
push eax
jmp 0x82c2d2
mov ecx, edi
mov edx, 0x71
push dword [esi + 8]
call fcn.007f9600
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.007d10f0
add esp, 0xc
mov edx, dword [esi + 0x14]
mov ecx, edi
call fcn.007f77c0
mov ecx, dword [ebp]
mov ebx, eax
cmp byte [ecx + 0x51], 0
jne 0x82c4f6
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.0098a5f0
add esp, 0xc
mov ecx, dword [esp + 0x24]
mov edx, 0xffffffff
push 0xfffffffffffffff7
push edi
call fcn.0078e110
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.008152a0
add esp, 8
mov ecx, edi
mov dword [ebx + 0x10], eax
call fcn.007fdcb0
mov dword [esp], eax
inc eax
mov ecx, edi
mov edx, 0x10
push eax
push 0
push eax
call fcn.007d10f0
add esp, 0xc
mov ecx, ebp
call fcn.007fb640
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.007d10d0
add esp, 8
mov ecx, edi
mov edx, 0x8a
push dword [esi + 8]
call fcn.007f9600
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x82c3d8
mov ecx, edi
mov edx, 0x14
push dword [esi + 0x18]
push eax
call fcn.007d10d0
add esp, 8
mov edx, dword [esp + 0x28]
mov ecx, edi
call fcn.007f75c0
mov ebx, dword [esp + 4]
mov ecx, ebp
mov edx, ebx
push dword [esi + 4]
push dword [esp + 0x1c]
call fcn.008189c0
add esp, 8
mov edx, dword [esp]
mov ecx, edi
call fcn.007f75c0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test edx, edx
je 0x82c48e
mov dword [esp], ebp
mov ebp, dword [esi + 8]
mov ecx, edi
mov dword [esp + 0x1c], eax
mov ebx, edx
call fcn.007fdcb0
add eax, 4
mov ecx, edi
mov edx, 0x31
push eax
push ebx
call fcn.007d10d0
add esp, 8
mov ecx, edi
mov edx, 0x21
push 0
push ebp
call fcn.007d10d0
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.0078dfd0
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.007f9600
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
jne 0x82c4a7
mov ecx, ebp
mov edx, esi
push dword [esp + 0x10]
push ebx
push dword [esp + 0x48]
call fcn.0082c500
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.0078dfd0
add esp, 0x10
cmp dword [esp + 8], 0
je 0x82c4f6
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x82c4e5
mov ecx, edi
call fcn.007fdcb0
mov edx, dword [esp + 8]
mov ecx, edi
push eax
call fcn.007f77b0
add esp, 0x30
jmp 0x82c4f9
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret