Function at 0x8239b0
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, dword [esp + 0x40]
mov dword [esp + 8], edx
mov esi, ecx
call fcn.007ebd10
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov ecx, esi
mov dword [esp], esi
mov dword [esp + 0x18], eax
call fcn.007efdc0
cmp dword [esp + 0x4c], 0
mov edi, eax
jns 0x8239fb
movzx eax, byte [ebx + 0x18]
mov ecx, dword [esp + 4]
mov edx, 0x2f
push edi
push eax
call fcn.007c57e0
add esp, 8
mov dword [esp + 0xc], edi
mov edi, dword [ebx + 0x14]
mov esi, dword [esp + 4]
mov ecx, ebx
test edi, edi
jle 0x823a47
mov eax, dword [esp + 0x48]
xor ebx, ebx
lea ebp, [eax + 1]
mov eax, dword [esp + 0x44]
mov edi, ecx
mov ecx, dword [ecx]
movsx edx, word [eax + ebx*4]
call fcn.007edca0
cwde
mov ecx, esi
mov edx, 0x32
add eax, ebp
push dword [esp + 0xc]
push eax
call fcn.007c57e0
mov ecx, edi
add esp, 8
mov edi, dword [edi + 0x14]
inc ebx
cmp ebx, edi
jl 0x823a15
mov ebx, dword [esp + 0x18]
mov ebp, ecx
dec ebx
cmp dword [esp + 0x50], 0
jne 0x823d05
cmp dword [esp + 0x3c], 0
jne 0x823b4d
mov ecx, dword [esp]
call fcn.007f1720
mov esi, eax
mov eax, dword [esp + 0x44]
mov ecx, dword [ebp]
movsx edx, word [eax]
call fcn.007edca0
mov ebp, dword [esp + 4]
mov ecx, dword [esp + 0x48]
cwde
mov edx, 0x4e
lea eax, [ecx + eax + 1]
mov ecx, ebp
push esi
push eax
call fcn.007c57e0
add esp, 8
mov ecx, ebp
mov edx, 0xf
push 0
push esi
call fcn.007c57e0
add esp, 8
cmp dword [esp + 0x4c], 1
mov dword [esp + 0x10], eax
jne 0x823ae8
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
cmp dword [eax], ecx
jne 0x823ae8
mov ecx, ebp
mov edx, 0x35
push esi
push dword [esp + 0x10]
push dword [esp + 0x50]
call fcn.007c5800
add esp, 0xc
mov ecx, ebp
mov edx, 0x90
call fcn.00782720
mov edi, dword [esp]
mov edx, ebx
mov ecx, edi
push 0x60
push dword [esp + 0x3c]
push dword [esp + 0x10]
call fcn.007ebf70
add esp, 0xc
mov ecx, ebp
mov edx, 0x20
push esi
push 0
push ebx
call fcn.007c5800
add esp, 0xc
mov edx, dword [esp + 0xc]
mov ecx, ebp
call fcn.007ebf10
mov ecx, ebp
call fcn.007f2430
lea edx, [eax - 2]
mov ecx, ebp
call fcn.007ebd40
mov edx, dword [esp + 0x10]
mov ecx, ebp
call fcn.007ebd40
mov ecx, edi
mov edx, esi
call fcn.007f0bc0
mov ebp, dword [esp + 0x40]
jmp 0x823d05
mov esi, dword [esp]
mov edx, edi
mov ecx, esi
call fcn.007eee80
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.007f1720
mov ecx, dword [esp + 4]
mov dword [esp + 0x14], eax
mov edx, 0x60
push dword [esp + 8]
mov esi, dword [esp + 0x40]
push dword [esi + 0x2c]
mov dword [esp + 0x20], ebx
push ebx
call fcn.007c5800
add esp, 0xc
mov ecx, dword [esp]
mov edx, esi
call fcn.007ec100
mov esi, dword [esp + 0x44]
test edi, edi
mov ebx, ebp
jle 0x823bdf
mov eax, dword [esp + 0x48]
xor ebp, ebp
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
movsx edx, word [esi + ebp*4]
mov ecx, dword [ebx]
lea eax, [ebp + eax]
mov dword [esp + 8], eax
call fcn.007edca0
cwde
mov ecx, dword [esp + 4]
mov edx, 0x4d
add eax, dword [esp + 0x1c]
push dword [esp + 8]
push eax
call fcn.007c57e0
add esp, 8
inc ebp
cmp ebp, edi
jne 0x823ba8
cmp dword [esp + 0x4c], 1
mov esi, dword [esp + 4]
mov ebp, ebx
jne 0x823ca3
mov eax, dword [esp + 0x38]
cmp dword [ebp], eax
jne 0x823ca3
mov ecx, esi
call fcn.007f2430
test edi, edi
jle 0x823c98
lea eax, [edi + eax + 1]
mov ecx, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
movsx edx, word [eax + ebx*4]
call fcn.007edca0
mov esi, dword [esp + 0x20]
cwde
add eax, esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov ecx, eax
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 0xc]
movsx ebp, word [eax + ebx*2]
mov edx, ebp
call fcn.007edca0
mov ecx, dword [esp + 0x38]
cwde
mov edx, 0x34
add eax, esi
mov esi, dword [esp + 4]
cmp bp, word [ecx + 0x28]
mov ecx, esi
cmove eax, dword [esp + 0x48]
push eax
push dword [esp + 0x20]
push dword [esp + 0x10]
call fcn.007c5800
add esp, 0xc
mov ecx, esi
mov edx, 0x10
call fcn.00782720
mov ebp, dword [esp + 0x40]
inc ebx
cmp ebx, edi
je 0x823c98
mov ecx, dword [ebp]
jmp 0x823c23
mov edx, dword [esp + 0xc]
mov ecx, esi
call fcn.007ebf10
mov ebx, esi
mov esi, dword [esp]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi]
call fcn.008054f0
mov ecx, ebx
mov edx, 0x5b
push edi
push eax
push dword [esp + 0x1c]
push edi
push dword [esp + 0x20]
call fcn.007ebd50
add esp, 0x14
mov ecx, ebx
mov edx, 0x1e
push 0
push dword [esp + 0x18]
push dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
push ebx
call fcn.007826e0
add esp, 0x10
mov edx, dword [esp + 0x14]
mov ecx, esi
call fcn.007f0bc0
mov edx, dword [esp + 0x10]
mov ecx, esi
push edi
call fcn.007ef1d0
add esp, 4
mov al, byte [ebp + 0x18]
mov edi, dword [esp + 0xc]
test al, al
jne 0x823d61
mov eax, dword [esp]
mov eax, dword [eax]
test byte [eax + 0x22], 8
jne 0x823d4b
mov eax, dword [esp]
cmp dword [eax + 0x74], 0
jne 0x823d4b
mov eax, dword [esp]
cmp byte [eax + 0x14], 0
jne 0x823d4b
mov ecx, dword [esp]
mov edx, 0x313
push 4
push 0xffffffffffffffff
push 0
push 2
call fcn.007f0b50
add esp, 0x10
mov esi, dword [esp + 4]
jmp 0x823d7c
cmp dword [esp + 0x4c], 0
jg 0x823d56
xor eax, eax
jmp 0x823d61
mov ecx, dword [esp]
call fcn.007f0b40
mov al, byte [ebp + 0x18]
mov esi, dword [esp + 4]
movzx eax, al
mov edx, 0x95
mov ecx, esi
push dword [esp + 0x4c]
push eax
call fcn.007c57e0
add esp, 8
mov ecx, esi
mov edx, edi
call fcn.007f04f0
mov ecx, esi
mov edx, 0x74
push ebx
call fcn.007edd80
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret