Function at 0x459670
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x2c
lea ecx, [esp + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [0xeaac28]
mov esi, 0xa
mov eax, edi
imul eax, eax, 0x49d8
add eax, 0xea43a0
mov edx, dword [eax]
mov ebp, dword [eax - 4]
xor ebx, ebx
cmp edx, ebp
setl bl
mov dword [ecx], ebx
add eax, 0x14
add ecx, 4
dec esi
jne 0x459693
mov ebp, dword [0x78d790]
mov ebx, 1
cmp ebp, ebx
mov dword [esp + 0x10], ebx
jl 0x459817
mov edi, 0x799af0
cmp byte [edi - 0x10], 1
jne 0x4597f8
movsx eax, word [edi]
lea eax, [eax + eax*4]
mov esi, dword [eax*4 + 0x5d06ec]
cmp esi, 1
je 0x4596e6
test esi, esi
jne 0x4596fb
push ebx
mov ecx, 0xbca350
call fcn.00488050
test al, al
jne 0x4597f8
test esi, esi
jl 0x4597f8
cmp esi, 3
jne 0x459711
cmp word [edi + 0x28], 0
jne 0x4597f8
cmp esi, 1
mov word [edi + 0x30], 0
je 0x45976d
test esi, esi
je 0x45976d
cmp esi, 2
jne 0x459747
mov ax, word [edi]
cmp ax, 0x1f
je 0x45973a
cmp ax, 0x1e
je 0x45973a
cmp ax, 0x21
jne 0x45977a
cmp word [edi + 0x28], 0
jne 0x4597f8
jmp 0x45977a
cmp esi, 8
jne 0x45977a
mov ax, word [edi]
cmp ax, 0x70
je 0x45975b
cmp ax, 0xcd
jne 0x45977a
push ebx
call fcn.00459240
add esp, 4
test eax, eax
je 0x45977a
jmp 0x4597f8
push ebx
call fcn.00459240
add esp, 4
test eax, eax
jne 0x4597f8
mov cx, word [edi + 0xa]
test cx, cx
jle 0x4597f8
mov ebx, dword [esp + esi*4 + 0x14]
lea ebp, [esp + esi*4 + 0x14]
test ebx, ebx
jne 0x4597a3
movsx eax, word [edi]
lea ecx, [eax + eax*4]
mov dx, word [ecx*8 + 0x705eb8]
mov word [edi + 0x30], dx
jmp 0x4597f4
mov eax, dword [0xeaac28]
lea edx, [esi + esi*4]
imul eax, eax, 0x49d8
movsx ecx, cx
mov eax, dword [eax + edx*4 + 0xea43a0]
push ecx
push eax
call fcn.004cde40
mov ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
add esp, 8
shr eax, 0x1f
add edx, eax
movsx eax, word [edi]
lea ecx, [eax + eax*4]
mov eax, dword [ecx*8 + 0x705eb8]
cmp edx, eax
jl 0x4597eb
mov edx, eax
add ebx, edx
mov word [edi + 0x30], dx
mov dword [ebp], ebx
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x78d790]
inc ebx
add edi, 0x108
cmp ebx, ebp
mov dword [esp + 0x10], ebx
jle 0x4596c6
mov edi, dword [0xeaac28]
lea eax, [esp + 0x14]
mov edx, 0xa
mov ecx, dword [eax]
test ecx, ecx
je 0x459829
dec ecx
mov dword [eax], ecx
add eax, 4
dec edx
jne 0x459820
imul edi, edi, 0x49d8
add edi, 0xea43a0
lea eax, [esp + 0x14]
mov esi, edi
mov edi, 0xa
mov edx, dword [eax]
mov ecx, dword [esi]
cmp edx, ecx
jge 0x459854
sub ecx, edx
mov dword [eax], ecx
jmp 0x45985a
mov dword [eax], 0
add esi, 0x14
add eax, 4
dec edi
jne 0x459846
mov ebx, 1
cmp ebp, ebx
jl 0x459926
mov esi, 0x799b20
cmp byte [esi - 0x40], 1
jne 0x459911
movsx eax, word [esi - 0x30]
lea edx, [eax + eax*4]
mov edi, dword [edx*4 + 0x5d06ec]
test edi, edi
jne 0x4598a2
push ebx
mov ecx, 0xbca350
call fcn.00488050
test al, al
je 0x4598bc
jmp 0x459911
jl 0x459911
cmp edi, 8
je 0x459911
cmp edi, 1
je 0x4598bc
cmp edi, 2
jne 0x4598c9
cmp word [esi - 8], 0
je 0x4598c9
jmp 0x459911
push ebx
call fcn.00459240
add esp, 4
test eax, eax
jne 0x459911
cmp word [esi - 0x26], 0
jle 0x459911
mov ecx, dword [esp + edi*4 + 0x14]
lea edi, [esp + edi*4 + 0x14]
test ecx, ecx
je 0x459911
movsx edx, word [esi - 0x30]
mov ax, word [esi]
lea edx, [edx + edx*4]
movsx ebp, ax
mov edx, dword [edx*8 + 0x705eb8]
cmp ebp, edx
jge 0x459911
sub edx, ebp
cmp edx, ecx
jg 0x459905
add eax, edx
sub ecx, edx
mov word [esi], ax
mov dword [edi], ecx
jmp 0x459911
add ax, word [edi]
mov dword [edi], 0
mov word [esi], ax
mov ebp, dword [0x78d790]
inc ebx
add esi, 0x108
cmp ebx, ebp
jle 0x459875
mov esi, 1
cmp ebp, esi
jl 0x459992
mov edi, 0x799af0
cmp byte [edi - 0x10], 1
jne 0x459982
cmp word [edi], 0x88
jne 0x459982
cmp word [edi + 0x30], 0
je 0x45996f
mov eax, dword [edi + 0xb4]
mov ecx, eax
shl ecx, 5
add ecx, eax
cmp word [ecx*8 + 0x799a18], 0
jle 0x45996f
push 1
push 1
push esi
call fcn.0043f060
add esp, 0xc
jmp 0x459982
push 3
push 1
push esi
call fcn.0043f060
push esi
call fcn.004a36b0
add esp, 0x10
mov eax, dword [0x78d790]
inc esi
add edi, 0x108
cmp esi, eax
jle 0x459934
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret