Function at 0x465590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x768
mov eax, dword [0x52b2f8]
xor eax, esp
mov dword [esp + 0x764], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], edi
mov ecx, dword [edi + 0xc]
call fcn.0044ef50
mov ecx, dword [edi + 0x14c]
cmp ecx, dword [edi + 0x148]
jae 0x4655e7
imul edx, ecx, 0x4c
add edx, dword [edi + 0x150]
inc ecx
mov dword [esp + 0x1c], edx
mov dword [edi + 0x14c], ecx
mov ecx, dword [edi + 0xc]
push eax
call fcn.0044ef70
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x466b63
mov eax, dword [edi + 0x14]
xor ecx, ecx
mov edx, 0x8dc
mov eax, dword [eax + esi*4]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x24]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cdcab
imul ecx, dword [edi + 0x24], 0x8dc
add esp, 4
mov esi, eax
mov dword [esp + 0x60], esi
push ecx
push dword [edi + 0x28]
push esi
call fcn.004d8f20
imul ecx, dword [edi + 0x2c], 0x8dc
add esp, 0xc
add esi, ecx
mov dword [esp + 0x4c], esi
mov eax, dword [esi + 0xc]
test eax, eax
js 0x465660
imul eax, eax, 0x8dc
add eax, dword [esp + 0x60]
mov dword [esp + 0x28], eax
jmp 0x465668
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov dword [esi + 0x834], eax
imul ecx, dword [edi + 0x2c], 0x8dc
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x60]
mov dword [ecx + edx + 0x838], eax
xor eax, eax
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x4656d8
mov esi, dword [esp + 0xc]
lea edi, [edx + 0x834]
mov ecx, dword [edi - 0x834]
test ecx, ecx
je 0x4656be
push ecx
push dword [edi + 4]
push dword [edi]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0045d880
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x24]
inc eax
add edi, 0x8dc
mov dword [esp + 0x34], eax
cmp eax, ecx
jb 0x4656a0
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0xc]
lea eax, [ecx*4]
push eax
lea eax, [edi + 0x30]
push eax
lea eax, [esp + 0x170]
push eax
call fcn.004d8f20
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x5c], edx
test eax, eax
jne 0x46572b
add edx, dword [esi + 0x24c]
mov edi, dword [esi + 0x250]
mov dword [esp + 0x5c], edx
jmp 0x465d0b
cmp eax, 6
jne 0x465840
push dword [esp + 0x60]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, edi
call fcn.00465510
mov edx, dword [esi + 0x260]
mov edi, eax
push ecx
push edi
push esi
lea ecx, [esp + 0x48]
call fcn.00464c90
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x10]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x54]
push eax
call fcn.0045ddb0
push dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
call fcn.004648a0
mov ecx, dword [esp + 0xc]
push eax
push dword [edi + 8]
push dword [esi + 8]
call fcn.00464800
mov edx, dword [esi + 0x260]
lea ecx, [esp + 0x1c]
push eax
push dword [esp + 0x48]
lea eax, [edi + 0x2c]
push eax
push dword [esp + 0x4c]
lea eax, [esi + 0x264]
push eax
lea eax, [esi + 0x2c]
push eax
call fcn.00464980
mov eax, dword [edi + 0x1c]
add esp, 0x1c
mov ecx, dword [esp + 0x18]
cmp ecx, eax
cmovg ecx, eax
sub eax, ecx
mov dword [esp + 0x18], ecx
mov dword [edi + 0x1c], eax
test eax, eax
jg 0x4657dd
mov eax, dword [esi + 0x284]
jmp 0x4657df
xor eax, eax
mov edx, dword [esi + 0x280]
imul edx, ecx
add edx, dword [esi + 0x27c]
add edx, eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x24], 0
je 0x465806
mov ecx, dword [esi + 0x278]
jmp 0x465808
xor ecx, ecx
push dword [edx + 4]
mov eax, dword [esi + 0x274]
mov edi, dword [esp + 0x14]
add eax, ecx
push dword [edx]
add dword [esp + 0x64], eax
mov ecx, edi
push dword [edx + 0x14]
mov eax, dword [edi]
push dword [edx + 0x10]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [esp + 0x1c]
lea edi, [eax - 2]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x14]
jmp 0x465d0b
cmp eax, 7
jne 0x465d09
imul edx, dword [ecx + 0xc], 0x58
add edx, esi
mov dword [esp + 8], edx
mov eax, dword [edx + 0x2e8]
mov dword [esp + 0x64], eax
test eax, eax
js 0x465cb6
mov edi, dword [ecx + 0x10]
jne 0x465885
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x368], edi
mov dword [esp + 0x36c], eax
mov dword [esp + 0x50], 1
jmp 0x4658da
mov eax, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x14]
cmp edi, dword [eax]
jne 0x465899
cmp ecx, dword [eax + 4]
jne 0x465899
xor edx, edx
jmp 0x46589e
mov edx, 1
mov eax, dword [esp + 0x10]
push edx
push 0
push 1
mov eax, dword [eax]
push 0
push 0
push dword [esp + 0x78]
push ecx
push edi
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x70]
push ecx
push 0
lea ecx, [esp + 0x390]
push ecx
mov ecx, edi
call dword [eax + 4]
cmp dword [esp + 0x50], 0
mov edx, dword [esp + 8]
jbe 0x465cb0
lea eax, [edx + 0x2c4]
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x38], eax
nop word [eax + eax]
push dword [esp + 0x60]
mov ecx, dword [esp + 0x10]
push dword [esp + eax*8 + 0x370]
push dword [esp + eax*8 + 0x370]
call fcn.00465510
mov edi, eax
mov eax, dword [esp + 8]
push ecx
push edi
push esi
mov edx, dword [eax + 0x2c0]
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], edi
call fcn.00464c90
mov ecx, dword [esp + 0x14]
add esp, 0xc
mov eax, 0x10000
cmp dword [ecx + 0x2b8], 0
jne 0x465985
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov eax, dword [esp + 0x38]
cmp dword [esp + eax*8 + 0x368], edx
jne 0x465965
cmp dword [esp + eax*8 + 0x36c], ecx
jne 0x465965
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [edi]
push eax
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x50]
push edx
push eax
call fcn.0045ddb0
push dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
call fcn.004648a0
mov ecx, dword [esp + 0xc]
push eax
push dword [edi + 8]
push dword [esi + 8]
call fcn.00464800
push eax
push dword [esp + 0x48]
lea eax, [edi + 0x2c]
push eax
push dword [esp + 0x4c]
lea eax, [esi + 0x2c]
push dword [esp + 0x78]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x2c0]
call fcn.00464980
mov edi, dword [edi + 4]
add esp, 0x1c
and edi, dword [esi + 4]
mov edx, dword [esp + 8]
neg edi
sbb edi, edi
and edi, 0xfffffff4
mov eax, dword [edx + 0x2b8]
add edi, 0x300
add edi, edx
cmp eax, 4
ja case.default.0x4659e8
jmp dword [eax*4 + 0x466b80]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
mov eax, dword [ecx + 0x1c]
cmp esi, eax
cmovg esi, eax
sub eax, esi
mov dword [esp + 0x18], esi
mov dword [ecx + 0x1c], eax
test eax, eax
jg 0x465a11
mov ecx, dword [edi + 8]
jmp 0x465a13
xor ecx, ecx
mov eax, dword [edi + 4]
imul eax, dword [esp + 0x18]
mov esi, dword [esp + 0x4c]
add eax, dword [edi]
add eax, ecx
add dword [esp + 0x14], eax
jmp case.default.0x4659e8
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
sub eax, ecx
cmp edx, eax
cmovg edx, eax
mov dword [esp + 0x18], edx
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x30]
mov dword [ecx + 0x1c], eax
mov eax, dword [edi + 4]
imul eax, edx
add eax, dword [edi]
add dword [esp + 0x14], eax
jmp 0x465c83
mov eax, dword [edx + 0x2bc]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
lea ecx, [ecx + eax*4]
mov eax, dword [ecx + 0x134]
add ecx, 0x134
cmp edx, eax
cmovg edx, eax
sub eax, edx
mov dword [esp + 0x18], edx
mov dword [ecx], eax
mov eax, dword [edi + 4]
imul eax, edx
jmp 0x465ac4
mov ecx, dword [edx + 0x2bc]
mov eax, dword [edx + 0x2d4]
mov edx, dword [esp + 0x30]
mov dword [edx + ecx*4 + 0x134], eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 0x2bc]
mov dword [edx + eax*4 + 0x1b4], ecx
mov eax, dword [edi + 4]
imul eax, ecx
add eax, dword [edi]
mov edx, dword [esp + 8]
add dword [esp + 0x14], eax
mov eax, dword [edx + 0x2bc]
cmp eax, 8
jl case.default.0x4659e8
cmp eax, 9
jle 0x465aeb
cmp eax, 0x1f
jne case.default.0x4659e8
mov edi, dword [esp + 0x30]
mov eax, dword [edi]
cmp eax, dword [esi]
je case.default.0x4659e8
push ecx
push 0
push edi
mov edx, 0x100
lea ecx, [esp + 0x48]
call fcn.00464c90
mov eax, dword [edi + 0x1b0]
add esp, 0xc
sub eax, dword [esp + 0x3c]
mov edx, 0
mov ecx, dword [edi + 0x12c]
add eax, ecx
cmovns edx, eax
mov dword [esp + 0x58], edx
cmp edx, ecx
je 0x465c83
push dword [esp + 0x60]
mov ecx, dword [esp + 0x10]
push edi
call fcn.00465540
mov ecx, dword [esp + 0x168]
or edi, 0xffffffff
mov dword [esp + 0x34], eax
xor edx, edx
xor eax, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x74], edx
test ecx, ecx
js 0x465ca8
nop dword [eax]
mov esi, dword [esp + 0x4c]
cmp dword [esp + 0x34], ecx
jne 0x465b92
test edi, edi
jns 0x465ca0
lea edi, [edx + 1]
or eax, 0xffffffff
mov dword [esp + 0x20], edi
mov dword [esp + 0x54], eax
jmp 0x465bce
test eax, eax
jg 0x465bce
mov esi, dword [esp + 0x60]
imul eax, ecx, 0x8dc
mov ecx, dword [esp + 0x58]
cmp ecx, dword [eax + esi + 0x12c]
mov esi, dword [esp + 0x4c]
jge 0x465bca
test edi, edi
jns 0x465ca0
mov edi, edx
mov eax, 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x54], eax
jmp 0x465bce
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + edx*4 + 0x16c]
inc edx
mov dword [esp + 0x74], edx
test ecx, ecx
jns 0x465b70
mov eax, dword [esp + 0x78]
cmp edi, eax
je 0x465c83
test eax, eax
lea edi, [edx - 1]
cmovns edi, eax
lea eax, [edx*4 + 4]
push eax
lea eax, [esp + 0x16c]
push eax
lea eax, [esp + 0x570]
push eax
call fcn.004d8f20
mov edx, dword [esp + 0x60]
add esp, 0xc
mov ecx, dword [esp + 0x20]
cmp edx, 1
mov esi, dword [esp + 0x34]
mov eax, edi
cmove eax, ecx
sub edi, ecx
mov dword [esp + eax*4 + 0x568], esi
lea eax, [edi*4 + 4]
push eax
lea eax, [esp + 0x16c]
lea eax, [eax + ecx*4]
push eax
lea eax, [edx + ecx]
lea ecx, [esp + 0x570]
lea eax, [ecx + eax*4]
push eax
call fcn.004d8f20
mov ecx, dword [esp + 0x80]
add esp, 0xc
lea eax, [ecx*4 + 4]
push eax
lea eax, [esp + 0x56c]
push eax
lea eax, [esp + 0x170]
push eax
call fcn.004d8f20
mov esi, dword [esp + 0x58]
add esp, 0xc
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x50]
jb 0x4658f0
mov ecx, dword [esp + 0x1c]
jmp 0x465cc0
lea eax, [edx - 1]
jmp 0x465be2
or eax, 0xffffffff
jmp 0x465be2
mov ecx, dword [esp + 0x1c]
jmp 0x465cc4
mov eax, dword [esi + 0x27c]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x10]
cmp dword [ecx + 0x24], 0
je 0x465cd2
mov ecx, dword [edx + 0x2f0]
jmp 0x465cd4
xor ecx, ecx
mov eax, dword [edx + 0x2ec]
add eax, ecx
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x5c], eax
mov eax, dword [edi]
push dword [ecx + 4]
push dword [ecx]
mov eax, dword [eax + 0xc]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x1c]
sub eax, 2
mov edi, dword [esp + 0x14]
mov dword [esp + 0x30], eax
jmp 0x465d0b
xor edi, edi
mov edx, dword [ecx + 0x24]
mov eax, dword [esi + 0x248]
mov ecx, dword [ecx + 0x28]
imul eax, edx
add edi, eax
mov dword [esp + 0x14], edi
cmp ecx, 1
jl 0x466025
mov eax, dword [esi + 0x2b0]
imul eax, ecx
add edi, eax
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], 0
cmp dword [ecx + 0x30], 0
je 0x465d7d
mov eax, dword [esi + 0x14]
imul eax, edx
imul eax, edx
add eax, dword [esi + 0x10]
add dword [esp + 0x14], eax
cmp dword [ecx + 8], 0
jne 0x465d75
cmp dword [esi + 0x254], 1
mov dword [esp + 0x34], 1
je 0x465d7d
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x5c]
mov edx, 0x100
push ecx
push 0
push esi
lea ecx, [esp + 0x48]
mov dword [esi + 0x12c], eax
call fcn.00464c90
mov eax, dword [esi + 0x1b0]
add esp, 0xc
sub eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
add dword [esp + 0x5c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, dword [esp + 0x1c]
xorps xmm0, xmm0
mov edx, dword [edi + 0x18]
mov dword [esp + 8], eax
movaps xmmword [esp + 0xc0], xmm0
mov esi, dword [ecx + 4]
imul esi, edx
movq qword [esp + 0xd0], xmm0
add esi, dword [ecx]
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0x4c]
test eax, eax
je 0x465dfa
mov ecx, eax
lea edi, [esp + 0xf8]
mov eax, dword [esi + 0x1c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x1c]
xor ecx, ecx
imul eax, edx
mov edx, 0x1c
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cdcab
mov ecx, dword [esp + 0x16c]
add esp, 4
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], 0
test ecx, ecx
js 0x46695f
lea eax, [esp + 0x168]
mov dword [esp + 0x64], eax
nop
imul edi, ecx, 0x8dc
add edi, dword [esp + 0x60]
mov dword [esp + 0x44], edi
cmp dword [edi + 0x1c], 0
jle 0x46693a
mov eax, dword [edi + 0x12c]
cmp eax, dword [esp + 0x5c]
jg 0x46695b
mov edx, dword [esp + 0xc]
jne 0x465e77
cmp dword [edx + 0x2c], ecx
jl 0x46695b
mov eax, dword [edi + 4]
test dword [esi + 4], eax
jne 0x466775
mov ecx, dword [edi + 0x850]
xor eax, eax
xor edx, edx
mov dword [esp + 0x2c], ecx
test ecx, ecx
mov dword [esp + 0x58], edx
mov ecx, dword [esp + 0x78]
setne al
shl ecx, 3
sub ecx, dword [esp + 0x78]
shl ecx, 2
mov dword [esp + 0x68], ecx
lea eax, [eax*4 + 0x854]
add eax, edi
mov dword [esp + 0x88], eax
mov eax, dword [eax]
cmp dword [ecx + eax], edx
je 0x465f36
push edx
mov edx, edi
lea ecx, [esp + 0x90]
call fcn.00464900
add esp, 4
mov eax, ecx
mov ecx, dword [esp + 0x10]
push 0
push 1
push eax
push 1
push dword [edi + 0x238]
push dword [edi + 0x234]
push dword [edi]
call fcn.0045ddf0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x8c]
push 0
push eax
push dword [edi]
push dword [esp + 0x78]
call fcn.0045e330
push dword [esp + 8]
mov eax, dword [esp + 0x6c]
push dword [esp + 0x34]
add eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0xec]
push eax
call fcn.00466bd0
mov edx, eax
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x368]
mov dword [esp + 0x50], edx
mov dword [esp + 0x24], ecx
lea edx, [edi + 0x2b4]
xor ecx, ecx
mov dword [esp + 0x20], edx
xor esi, esi
cmp dword [esp + 0x2c], ecx
setne cl
lea eax, [ecx*4 + 0x85c]
add eax, edi
mov ecx, eax
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
nop dword [eax]
nop dword [eax + eax]
cmp dword [edx], 0
mov dword [esp + esi*4 + 0x128], 0
je 0x466087
mov edi, dword [esp + 0x68]
mov eax, dword [ecx]
cmp dword [edi + eax], 0
mov edi, dword [esp + 0x44]
je 0x466083
lea eax, [esi + 1]
mov edx, edi
push eax
lea ecx, [esp + 0x90]
call fcn.00464900
add esp, 4
mov eax, ecx
mov ecx, dword [esp + 0x10]
push 0
push 1
push eax
push 1
push dword [edi + 0x238]
push dword [edi + 0x234]
push dword [edi]
call fcn.0045ddf0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x8c]
push 0
push eax
push dword [edi]
push dword [esp + 0x78]
call fcn.0045e330
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
test eax, eax
jne 0x466047
push dword [esp + 8]
mov eax, dword [esp + 0x6c]
push dword [esp + 0x34]
add eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x14]
push eax
push dword [esp + 0x30]
call fcn.00466bd0
mov edx, dword [esp + 0x20]
jmp 0x466057
test ecx, ecx
jns 0x465d38
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x1c]
add eax, dword [edi + 0x18]
imul eax, dword [esi + 0x2b0]
add dword [esp + 0x14], eax
jmp 0x465d3c
cmp eax, 4
jne 0x46605e
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx + eax]
mov dword [esp + esi*4 + 0x128], eax
cmp dword [esp + 0x50], 0
jne 0x466077
cmp dword [esp + esi*4 + 0x128], 0
mov dword [esp + 0x50], 0
je 0x46607f
mov dword [esp + 0x50], 1
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
inc esi
add edx, 0x58
add ecx, 8
mov dword [esp + 0x20], edx
add eax, 0x18
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], eax
cmp esi, 0x10
jb 0x465f80
cmp dword [edi + 0x850], 0
mov esi, dword [esp + 0x4c]
je 0x4660d1
mov eax, dword [esi + 0x2ac]
mov dword [esp + 0x54], eax
test eax, eax
jne 0x4660d9
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x154]
mov dword [esp + 0x54], eax
jmp 0x4660d9
mov dword [esp + 0x54], 0x64
mov eax, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 0x24], ecx
test eax, eax
je 0x466456
mov edx, dword [esp + 0x30]
nop
test edx, edx
js 0x4660fc
cmp edx, ecx
jne 0x466449
lea eax, [ecx + 2]
mov ecx, dword [esp + 0x10]
push eax
push dword [esi]
call fcn.0045d900
cmp dword [esp + 0x58], 0
je 0x466223
mov eax, dword [esp + 0x24]
mov edx, dword [edi + 0x260]
push ecx
push esi
mov eax, dword [esp + eax*4 + 0x100]
lea ecx, [esp + 0x44]
push edi
mov dword [esp + 0x38], eax
call fcn.00464c90
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x10]
push 1
push dword [esp + ecx*4 + 0xe4]
mov eax, dword [edx]
lea ecx, [esp + 0x84]
push dword [esi]
push ecx
mov ecx, edx
call dword [eax + 0x14]
push dword [esi]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x4c]
push dword [esp + 0x84]
push dword [esp + 0x84]
push eax
call fcn.0045ddb0
push dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
call fcn.004648a0
mov ecx, dword [esp + 0xc]
push eax
push dword [esi + 8]
push dword [edi + 8]
call fcn.00464800
mov edx, dword [edi + 0x260]
lea ecx, [esp + 0x1c]
push eax
push dword [esp + 0x48]
lea eax, [esi + 0x2c]
push eax
push dword [esp + 0x4c]
lea eax, [edi + 0x264]
push eax
lea eax, [edi + 0x2c]
push eax
call fcn.00464980
mov edi, dword [esp + 0x40]
add esp, 0x1c
mov ecx, dword [esp + 0x2c]
mov eax, ecx
mov edx, dword [esp + 0x18]
sub eax, edx
mov dword [esp + edi*4 + 0xf8], eax
mov edi, dword [esp + 0x44]
test eax, eax
jg 0x4661ed
cmp ecx, 1
jl 0x4661ed
mov eax, dword [esi + 0x290]
jmp 0x4661ef
xor eax, eax
mov ecx, dword [esi + 0x28c]
imul ecx, edx
add ecx, dword [esi + 0x288]
add ecx, eax
mov eax, 0x51eb851f
imul ecx, dword [esp + 0x54]
imul ecx
mov ecx, dword [esp + 0x24]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [esp + ecx*4 + 0xc0], eax
jmp 0x466227
mov ecx, dword [esp + 0x24]
xor eax, eax
lea edx, [esp + 0x368]
add edi, 0x2c0
mov dword [esp + 0x2c], eax
lea edx, [edx + ecx*4]
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], edx
nop word [eax + eax]
cmp dword [esp + eax*4 + 0x128], 0
je 0x466421
mov ecx, dword [edi - 8]
test ecx, ecx
jne 0x46637c
mov eax, dword [esp + 0x24]
mov edx, dword [edi]
push ecx
push esi
mov eax, dword [esp + eax*4 + 0x100]
lea ecx, [esp + 0x44]
push dword [esp + 0x4c]
mov dword [esp + 0x7c], eax
call fcn.00464c90
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov edx, dword [esp + 0x10]
push 1
push dword [ecx]
mov eax, dword [edx]
lea ecx, [esp + 0x84]
push dword [esi]
push ecx
mov ecx, edx
call dword [eax + 0x14]
push dword [esi]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x4c]
push dword [esp + 0x84]
push dword [esp + 0x84]
push eax
call fcn.0045ddb0
push dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
call fcn.004648a0
mov ecx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x48]
push dword [esi + 8]
push dword [eax + 8]
call fcn.00464800
mov edx, dword [edi]
lea ecx, [esp + 0x1c]
push eax
push dword [esp + 0x48]
lea eax, [esi + 0x2c]
push eax
push dword [esp + 0x4c]
lea eax, [edi + 4]
push eax
mov eax, dword [esp + 0x5c]
add eax, 0x2c
push eax
call fcn.00464980
mov edi, dword [esp + 0x40]
add esp, 0x1c
mov ecx, dword [esp + 0x70]
mov eax, ecx
mov edx, dword [esp + 0x18]
sub eax, edx
mov dword [esp + edi*4 + 0xf8], eax
mov edi, dword [esp + 0x38]
test eax, eax
jg 0x46633b
cmp ecx, 1
jl 0x46633b
mov eax, dword [esi + 0x29c]
jmp 0x46633d
xor eax, eax
mov ecx, dword [esi + 0x298]
imul ecx, edx
add ecx, dword [esi + 0x294]
add ecx, eax
mov eax, 0x51eb851f
imul ecx, dword [esp + 0x54]
imul ecx
mov ecx, dword [esp + 0x24]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x20]
add dword [esp + ecx*4 + 0xc0], eax
mov eax, dword [esp + 0x2c]
jmp 0x466421
cmp ecx, 4
jne 0x46641d
mov edi, dword [edi]
mov edx, edi
push ecx
push esi
push dword [esp + 0x4c]
lea ecx, [esp + 0x48]
call fcn.00464c90
mov eax, dword [esp + 0x50]
add esp, 0xc
mov ecx, dword [esp + 0xc]
push 0x10000
push dword [esi + 8]
push dword [eax + 8]
call fcn.00464800
push eax
push dword [esp + 0x48]
lea eax, [esi + 0x2c]
mov edx, edi
push eax
push dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x2c]
add eax, 4
push eax
mov eax, dword [esp + 0x5c]
add eax, 0x2c
push eax
call fcn.00464980
mov edi, dword [esp + 0x54]
add esp, 0x1c
mov ecx, dword [edi - 4]
mov eax, dword [edi + 0x14]
mov dword [esi + ecx*4 + 0x134], eax
mov eax, dword [edi - 4]
mov ecx, dword [esp + 0x18]
mov dword [esi + eax*4 + 0x1b4], ecx
mov eax, 0x51eb851f
mov edx, dword [esi + 0x2a4]
imul edx, ecx
add edx, dword [esi + 0x2a0]
imul edx, dword [esp + 0x54]
imul edx
jmp 0x46635a
mov ecx, dword [esp + 0x24]
inc eax
add edi, 0x58
add edx, 0x18
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], edx
cmp eax, 0x10
jb 0x466250
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, eax
jb 0x4660f0
mov ecx, dword [esp + 0x50]
test ecx, ecx
jne 0x466550
cmp dword [edi + 0x850], ecx
jne 0x466550
mov eax, dword [edi + 0x238]
xor edx, edx
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x12c]
sar ecx, 2
imul ecx, dword [edi + 0x240]
add ecx, dword [edi + 0x23c]
add eax, ecx
mov ecx, dword [esp + 0x74]
inc ecx
mov dword [esp + 0x70], eax
mov dword [edi + 0x12c], eax
lea eax, [esp + 0x168]
cmp dword [eax + ecx*4], edx
lea eax, [eax + ecx*4]
jl 0x4664e4
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x60]
test edx, edx
jne 0x4664cb
imul eax, dword [eax], 0x8dc
cmp esi, dword [eax + edi + 0x12c]
cmovl edx, ecx
inc ecx
lea eax, [esp + 0x168]
cmp dword [eax + ecx*4], 0
lea eax, [eax + ecx*4]
jge 0x4664b7
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
test edx, edx
mov eax, ecx
cmovne eax, edx
mov edx, eax
mov dword [esp + 0x70], eax
cmp ecx, edx
jb 0x466513
nop word [eax + eax]
mov eax, dword [esp + ecx*4 + 0x168]
mov dword [esp + ecx*4 + 0x16c], eax
dec ecx
cmp ecx, edx
jae 0x466500
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
mov dword [edi + 0x850], 1
cmp dword [edi + 0xc], 0
mov eax, dword [eax]
mov dword [esp + edx*4 + 0x168], eax
jl 0x46654c
mov eax, dword [edi + 0x848]
mov dword [edi + 0x834], eax
mov eax, dword [edi + 0x84c]
mov dword [edi + 0x838], eax
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x1c]
cmp dword [edx + 8], 0
jne 0x46693a
test ecx, ecx
je 0x46693a
cmp dword [edx + 0x1c], 0
jge 0x46693a
xorps xmm0, xmm0
xor edx, edx
movaps xmmword [esp + 0xa0], xmm0
movq qword [esp + 0xb0], xmm0
mov dword [esp + 0x2c], edx
test eax, eax
je 0x466634
mov eax, dword [esp + 0x88]
lea esi, [edi + 0x2b8]
mov ecx, dword [esp + 0x68]
add ecx, 4
mov dword [esp + 0x70], esi
mov eax, dword [eax]
add eax, ecx
mov dword [esp + 0x20], eax
mov edi, dword [eax]
add edi, dword [esp + edx*4 + 0xa0]
xor ecx, ecx
mov dword [esp + edx*4 + 0xa0], edi
mov edx, esi
mov esi, dword [esp + 0x84]
mov dword [esp + 0x58], ecx
cmp dword [esp + ecx*4 + 0x128], 0
je 0x4665f9
cmp dword [edx], 0
jne 0x4665f9
mov eax, dword [esi]
mov ecx, dword [esp + 0x68]
add edi, dword [ecx + eax + 4]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x58]
mov dword [esp + eax*4 + 0xa0], edi
inc ecx
add edx, 0x58
add esi, 8
mov dword [esp + 0x58], ecx
cmp ecx, 0x10
jb 0x4665d1
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
inc edx
add dword [esp + 0x68], 4
add eax, 4
mov esi, dword [esp + 0x70]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], eax
cmp edx, dword [esp + 8]
jb 0x4665b2
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xa0]
lea edi, [eax - 1]
mov ecx, 1
cmp eax, ecx
jbe 0x4666d3
cmp edi, 8
jb 0x4666b4
cmp dword [0x530d54], 2
jl 0x4666b4
movd xmm0, edx
and edi, 7
pshufd xmm1, xmm0, 0
sub eax, edi
movaps xmm2, xmm1
nop word [eax + eax]
movups xmm0, xmmword [esp + ecx*4 + 0xa0]
pmaxud xmm1, xmm0
movups xmm0, xmmword [esp + ecx*4 + 0xb0]
add ecx, 8
pmaxud xmm2, xmm0
cmp ecx, eax
jb 0x466670
pmaxud xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
pmaxud xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
pmaxud xmm1, xmm0
movd edx, xmm1
mov edi, dword [esp + 8]
cmp ecx, edi
jae 0x4666d3
nop dword [eax]
mov eax, dword [esp + ecx*4 + 0xa0]
cmp edx, eax
cmovae eax, edx
inc ecx
mov edx, eax
cmp ecx, edi
jb 0x4666c0
xor eax, eax
mov dword [esp + 0x20], 0
xor edi, edi
cmp dword [esp + 8], eax
jbe 0x466729
mov esi, eax
nop word [eax + eax]
xor eax, eax
mov ecx, edi
cmp edx, dword [esp + edi*4 + 0xa0]
cmovne ecx, dword [esp + 0x20]
sete al
mov dword [esp + edi*4 + 0xe0], eax
lea eax, [esi + 1]
cmovne eax, esi
mov dword [esp + 0x20], ecx
inc edi
mov esi, eax
cmp edi, dword [esp + 8]
jb 0x4666f0
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x20], ecx
mov edi, dword [esp + 0x1c]
cmp eax, 1
je 0x466769
push dword [edi + 4]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
push dword [edi]
mov eax, dword [edx]
push dword [ecx + 0x838]
push dword [ecx + 0x834]
mov eax, dword [eax + 0xc]
mov ecx, edx
call eax
sub eax, 2
cmp dword [esp + eax*4 + 0xe0], 0
je 0x466769
mov dword [edi + 0x1c], eax
jmp 0x46693a
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x1c], ecx
jmp 0x46693a
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x46693a
mov eax, dword [ecx + 0x838]
imul eax, dword [edx + 0x18]
add eax, dword [ecx + 0x834]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edi + 0x854]
shl ecx, 2
mov dword [esp + 0x84], ecx
cmp dword [ecx + eax], 0
je 0x46693a
push 0
mov edx, edi
lea ecx, [esp + 0x90]
call fcn.00464900
add esp, 4
mov eax, ecx
mov ecx, dword [esp + 0x10]
push 0
push 1
push eax
push 1
push dword [edi + 0x238]
push dword [edi + 0x234]
push dword [edi]
call fcn.0045ddf0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x8c]
push 0
push eax
push dword [edi]
push dword [esp + 0x78]
call fcn.0045e330
push dword [esp + 8]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push dword [eax + 0x83c]
mov eax, dword [esp + 0x8c]
add eax, dword [esp + 0x74]
push eax
lea eax, [esp + 0xec]
push eax
call fcn.00466bd0
test eax, eax
je 0x46693a
mov ecx, dword [esp + 0x28]
mov edx, dword [edi + 0x260]
push ecx
push ecx
mov eax, dword [ecx + 0x1c]
lea ecx, [esp + 0x44]
push edi
mov dword [esp + 0x64], eax
call fcn.00464c90
mov eax, dword [esp + 0x34]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x83c]
mov edx, dword [ecx]
push 1
push dword [esp + eax*4 + 0xe4]
mov eax, dword [esp + 0x30]
push dword [eax]
lea eax, [esp + 0x88]
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push dword [eax]
lea eax, [esp + 0x4c]
push dword [esp + 0x84]
push dword [esp + 0x84]
push eax
call fcn.0045ddb0
push dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
call fcn.004648a0
mov ecx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + 8]
push dword [edi + 8]
call fcn.00464800
mov edx, dword [edi + 0x260]
lea ecx, [esp + 0x1c]
push eax
push dword [esp + 0x48]
mov eax, dword [esp + 0x34]
add eax, 0x2c
push eax
push dword [esp + 0x4c]
lea eax, [edi + 0x264]
push eax
lea eax, [edi + 0x2c]
push eax
call fcn.00464980
mov edi, dword [esp + 0x44]
add esp, 0x1c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
mov eax, dword [edi + 0x1c]
cmp ecx, eax
jle 0x46690d
xor ecx, ecx
cmp edx, 1
cmovge ecx, eax
mov dword [esp + 0x18], ecx
sub eax, ecx
mov dword [edi + 0x1c], eax
test eax, eax
jg 0x466923
cmp edx, 1
jl 0x466923
mov edx, dword [esi + 0x284]
jmp 0x466925
xor edx, edx
mov eax, dword [esi + 0x280]
imul eax, ecx
add eax, dword [esi + 0x27c]
add eax, edx
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x168]
inc eax
mov dword [esp + 0x74], eax
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
mov dword [esp + 0x64], eax
test ecx, ecx
jns 0x465e40
mov eax, dword [esp + 0x6c]
push eax
call fcn.004cdc68
add esp, 4
cmp dword [esp + 0x34], 0
je 0x466b1b
mov ecx, dword [esp + 0x10]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esi + 0x238]
push dword [esi + 0x234]
push dword [esi]
call fcn.0045da50
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
push dword [eax + 0x838]
push dword [eax + 0x834]
lea eax, [esp + 0x104]
push dword [esi]
push eax
lea eax, [esp + 0xf4]
push eax
call fcn.0045dad0
mov ecx, dword [esp + 8]
xor eax, eax
mov dword [esp + 0x34], eax
mov edi, 0x80000000
test ecx, ecx
je 0x466b1b
nop dword [eax]
nop word [eax + eax]
cmp dword [esp + eax*4 + 0xe0], 0
jl 0x466ae0
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x260]
push ecx
push ecx
mov eax, dword [ecx + 0x1c]
lea ecx, [esp + 0x44]
push esi
mov dword [esp + 0x70], eax
call fcn.00464c90
mov eax, dword [esp + 0x34]
add esp, 0xc
mov ecx, dword [esp + 0x10]
push dword [eax]
mov eax, dword [esp + 0x38]
push dword [esp + eax*8 + 0x100]
push dword [esp + eax*8 + 0x100]
lea eax, [esp + 0x54]
push eax
call fcn.0045ddb0
push dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
call fcn.004648a0
mov ecx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + 8]
push dword [esi + 8]
call fcn.00464800
mov edx, dword [esi + 0x260]
lea ecx, [esp + 0x1c]
push eax
push dword [esp + 0x48]
mov eax, dword [esp + 0x34]
add eax, 0x2c
push eax
push dword [esp + 0x4c]
lea eax, [esi + 0x264]
push eax
lea eax, [esi + 0x2c]
push eax
call fcn.00464980
mov eax, dword [esp + 0x44]
add esp, 0x1c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x64]
mov eax, dword [eax + 0x1c]
cmp ecx, eax
jle 0x466aa2
xor ecx, ecx
cmp edx, 1
cmovge ecx, eax
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x28]
sub eax, ecx
mov dword [esi + 0x1c], eax
mov esi, dword [esp + 0x4c]
test eax, eax
jg 0x466ac0
cmp edx, 1
jl 0x466ac0
mov edx, dword [esi + 0x284]
jmp 0x466ac2
xor edx, edx
mov eax, dword [esi + 0x280]
imul eax, ecx
mov ecx, dword [esp + 8]
add eax, dword [esi + 0x27c]
add eax, edx
cmp edi, eax
cmovl edi, eax
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x34], eax
cmp eax, ecx
jb 0x4669e0
cmp edi, 0x80000000
je 0x466b1b
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x158]
mov eax, 0x51eb851f
imul ecx, edi
mov edi, dword [esp + 0x14]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add edi, eax
jmp 0x466b1f
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 8]
xor ecx, ecx
test esi, esi
je 0x466b53
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
add edx, 0x34
test eax, eax
js 0x466b3c
cmp eax, ecx
jne 0x466b4b
mov eax, dword [esp + ecx*4 + 0xc0]
add eax, edi
mov dword [edx], eax
mov eax, dword [esp + 0x30]
inc ecx
add edx, 4
cmp ecx, esi
jb 0x466b34
push dword [esp + 0x60]
call fcn.004cdc68
mov ecx, dword [esp + 0x20]
add esp, 4
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x76c]
pop edi
setne al
pop esi
xor ecx, esp
call fcn.004cdc57
mov esp, ebp
pop ebp
ret 4