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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x768
mov eax, dword [0x5522f8]
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.0049ae20
mov ecx, dword [edi + 0x14c]
cmp ecx, dword [edi + 0x148]
jae 0x4aefe7
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.0049adf0
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4b059f
mov eax, dword [edi + 0x14]
xor ecx, ecx
mov edx, 0x8dc
mov eax, dword [eax + esi*4]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x24]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427619
imul ecx, dword [edi + 0x24], 0x8dc
add esp, 4
mov esi, eax
mov dword [esp + 0x5c], esi
push ecx
push dword [edi + 0x28]
push esi
call fcn.00432780
imul ecx, dword [edi + 0x2c], 0x8dc
add esp, 0xc
add esi, ecx
mov dword [esp + 0x50], esi
mov eax, dword [esi + 0xc]
test eax, eax
js 0x4af060
imul eax, eax, 0x8dc
add eax, dword [esp + 0x5c]
mov dword [esp + 0x3c], eax
jmp 0x4af068
mov dword [esp + 0x3c], 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 + 0x5c]
mov dword [ecx + edx + 0x838], eax
xor eax, eax
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x4af0d8
mov esi, dword [esp + 0xc]
lea edi, [edx + 0x834]
mov ecx, dword [edi - 0x834]
test ecx, ecx
je 0x4af0be
push ecx
push dword [edi + 4]
push dword [edi]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.004a9eb0
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x24]
inc eax
add edi, 0x8dc
mov dword [esp + 0x34], eax
cmp eax, ecx
jb 0x4af0a0
mov esi, dword [esp + 0x50]
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.00432780
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x10], 0
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x58], edx
test eax, eax
jne 0x4af12b
add edx, dword [esi + 0x24c]
mov edi, dword [esi + 0x250]
mov dword [esp + 0x58], edx
jmp 0x4af745
cmp eax, 6
jne 0x4af24e
push dword [esp + 0x5c]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, edi
call fcn.004b0620
mov edx, dword [esi + 0x260]
mov edi, eax
push ecx
push edi
push esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x40], edi
call fcn.004b0da0
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x18]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x58]
push eax
call fcn.004a9990
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
call fcn.004b1290
mov ecx, dword [esp + 0xc]
mov edi, eax
mov eax, dword [esp + 0x34]
push dword [eax + 8]
push dword [esi + 8]
call fcn.004b1310
mov edx, dword [esi + 0x260]
lea ecx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x38]
push eax
push dword [esp + 0x50]
lea eax, [edi + 0x2c]
push eax
push dword [esp + 0x54]
lea eax, [esi + 0x264]
push eax
lea eax, [esi + 0x2c]
push eax
call fcn.004b0f00
mov eax, dword [edi + 0x1c]
add esp, 0x1c
mov ecx, dword [esp + 0x14]
cmp ecx, eax
cmovg ecx, eax
sub eax, ecx
mov dword [esp + 0x14], ecx
mov dword [edi + 0x1c], eax
test eax, eax
jg 0x4af1eb
mov eax, dword [esi + 0x284]
jmp 0x4af1ed
xor eax, eax
mov edx, dword [esi + 0x280]
imul edx, ecx
add edx, dword [esi + 0x27c]
add edx, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x24], 0
je 0x4af214
mov ecx, dword [esi + 0x278]
jmp 0x4af216
xor ecx, ecx
push dword [edx + 4]
mov eax, dword [esi + 0x274]
mov edi, dword [esp + 0x1c]
add eax, ecx
push dword [edx]
add dword [esp + 0x60], 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 + 0x10]
jmp 0x4af745
cmp eax, 7
jne 0x4af743
imul edx, dword [ecx + 0xc], 0x58
mov ecx, dword [edx + esi + 0x2e8]
add edx, esi
mov dword [esp + 8], edx
test ecx, ecx
js 0x4af6ec
jne 0x4af2a7
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], 1
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x368], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x36c], eax
lea eax, [edx + 0x2c4]
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x60], eax
jmp 0x4af324
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax]
mov edi, dword [edx + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 0x64], eax
mov eax, dword [edx + 0x14]
cmp edi, dword [edx]
jne 0x4af2cb
cmp eax, dword [edx + 4]
jne 0x4af2cb
xor edx, edx
jmp 0x4af2d0
mov edx, 1
push edx
push 0
push 1
push 0
push 0
push ecx
push eax
push edi
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x74]
push eax
push 0
lea eax, [esp + 0x390]
mov ecx, edi
push eax
call dword [esp + 0x90]
cmp dword [esp + 0x54], 0
mov edx, dword [esp + 8]
jbe 0x4af6fa
mov edi, dword [esp + 0xc]
lea eax, [edx + 0x2c4]
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x60], eax
jmp 0x4af324
mov edi, dword [esp + 0xc]
push dword [esp + 0x5c]
mov ecx, edi
push dword [esp + eax*8 + 0x370]
push dword [esp + eax*8 + 0x370]
call fcn.004b0620
mov edi, eax
mov eax, dword [esp + 8]
push ecx
push edi
push esi
mov edx, dword [eax + 0x2c0]
lea ecx, [esp + 0x50]
mov dword [esp + 0x3c], edi
call fcn.004b0da0
mov eax, dword [esp + 0x14]
add esp, 0xc
mov dword [esp + 0x34], 0x10000
cmp dword [eax + 0x2b8], 0
jne 0x4af3be
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov eax, dword [esp + 0x60]
cmp dword [esp + eax*8 + 0x368], edx
jne 0x4af39a
cmp dword [esp + eax*8 + 0x36c], ecx
jne 0x4af39a
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 + 0x20]
lea eax, [esp + 0x54]
push edx
push eax
call fcn.004a9990
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
call fcn.004b1290
mov dword [esp + 0x34], eax
push dword [edi + 8]
mov ecx, dword [esp + 0x10]
push dword [esi + 8]
call fcn.004b1310
push dword [esp + 0x34]
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x50]
lea eax, [edi + 0x2c]
push eax
push dword [esp + 0x54]
lea eax, [esi + 0x2c]
push dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x2c0]
call fcn.004b0f00
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.0x4af424
jmp dword [eax*4 + 0x4b05bc]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
mov eax, dword [ecx + 0x1c]
cmp esi, eax
cmovg esi, eax
sub eax, esi
mov dword [esp + 0x14], esi
mov dword [ecx + 0x1c], eax
test eax, eax
jg 0x4af44d
mov ecx, dword [edi + 8]
jmp 0x4af44f
xor ecx, ecx
mov eax, dword [edi + 4]
imul eax, dword [esp + 0x14]
mov esi, dword [esp + 0x50]
add eax, ecx
add eax, dword [edi]
add dword [esp + 0x10], eax
jmp case.default.0x4af424
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
sub eax, ecx
cmp edx, eax
cmovg edx, eax
mov dword [esp + 0x14], 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 + 0x10], eax
jmp 0x4af6c3
mov eax, dword [edx + 0x2bc]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
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 + 0x14], edx
mov dword [ecx], eax
mov eax, dword [edi + 4]
imul eax, edx
jmp 0x4af500
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 + 0x14]
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 + 0x10], eax
mov eax, dword [edx + 0x2bc]
cmp eax, 8
jl case.default.0x4af424
cmp eax, 9
jle 0x4af527
cmp eax, 0x1f
jne case.default.0x4af424
mov edi, dword [esp + 0x30]
mov eax, dword [edi]
cmp eax, dword [esi]
je case.default.0x4af424
push ecx
push 0
push edi
mov edx, 0x100
lea ecx, [esp + 0x50]
call fcn.004b0da0
mov eax, dword [edi + 0x1b0]
add esp, 0xc
sub eax, dword [esp + 0x44]
mov edx, 0
mov ecx, dword [edi + 0x12c]
add eax, ecx
cmovns edx, eax
mov dword [esp + 0x40], edx
cmp edx, ecx
je 0x4af6c3
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x10]
push edi
call fcn.004b05d0
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 + 0x70], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x78], edx
test ecx, ecx
js 0x4af6e4
nop dword [eax + eax]
mov esi, dword [esp + 0x50]
cmp dword [esp + 0x34], ecx
jne 0x4af5d2
test edi, edi
jns 0x4af6dc
lea edi, [edx + 1]
or eax, 0xffffffff
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], eax
jmp 0x4af60e
test eax, eax
jg 0x4af60e
mov esi, dword [esp + 0x5c]
imul eax, ecx, 0x8dc
mov ecx, dword [esp + 0x40]
cmp ecx, dword [eax + esi + 0x12c]
mov esi, dword [esp + 0x50]
jge 0x4af60a
test edi, edi
jns 0x4af6dc
mov edi, edx
mov eax, 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], eax
jmp 0x4af60e
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + edx*4 + 0x16c]
inc edx
mov dword [esp + 0x78], edx
test ecx, ecx
jns 0x4af5b0
mov eax, dword [esp + 0x70]
cmp edi, eax
je 0x4af6c3
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.00432780
mov edx, dword [esp + 0x44]
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.00432780
mov ecx, dword [esp + 0x84]
add esp, 0xc
lea eax, [ecx*4 + 4]
push eax
lea eax, [esp + 0x56c]
push eax
lea eax, [esp + 0x170]
push eax
call fcn.00432780
mov esi, dword [esp + 0x5c]
add esp, 0xc
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x60]
inc eax
mov dword [esp + 0x60], eax
cmp eax, dword [esp + 0x54]
jb 0x4af320
jmp 0x4af6f6
lea eax, [edx - 1]
jmp 0x4af622
or eax, 0xffffffff
jmp 0x4af622
mov eax, dword [esi + 0x27c]
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x24], 0
je 0x4af70c
mov ecx, dword [edx + 0x2f0]
jmp 0x4af70e
xor ecx, ecx
mov eax, dword [edx + 0x2ec]
add eax, ecx
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x58], 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 + 0x10]
mov dword [esp + 0x30], eax
jmp 0x4af745
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 + 0x10], edi
cmp ecx, 1
jl 0x4afa65
mov eax, dword [esi + 0x2b0]
imul eax, ecx
add edi, eax
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], 0
cmp dword [ecx + 0x30], 0
je 0x4af7b7
mov eax, dword [esi + 0x14]
imul eax, edx
imul eax, edx
add eax, dword [esi + 0x10]
add dword [esp + 0x10], eax
cmp dword [ecx + 8], 0
jne 0x4af7af
cmp dword [esi + 0x254], 1
mov dword [esp + 0x34], 1
je 0x4af7b7
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x58]
mov edx, 0x100
push ecx
push 0
push esi
lea ecx, [esp + 0x50]
mov dword [esi + 0x12c], eax
call fcn.004b0da0
mov eax, dword [esi + 0x1b0]
add esp, 0xc
sub eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
add dword [esp + 0x58], 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 + 0x70], esi
mov esi, dword [esp + 0x50]
test eax, eax
je 0x4af834
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.00427619
mov ecx, dword [esp + 0x16c]
add esp, 4
mov dword [esp + 0x6c], eax
mov dword [esp + 0x78], 0
test ecx, ecx
js 0x4b03a1
lea eax, [esp + 0x168]
mov dword [esp + 0x64], eax
nop dword [eax]
imul edi, ecx, 0x8dc
add edi, dword [esp + 0x5c]
mov dword [esp + 0x28], edi
cmp dword [edi + 0x1c], 0
jle 0x4b037c
mov eax, dword [edi + 0x12c]
cmp eax, dword [esp + 0x58]
jg 0x4b039d
mov edx, dword [esp + 0xc]
jne 0x4af8b7
cmp dword [edx + 0x2c], ecx
jl 0x4b039d
mov eax, dword [edi + 4]
test dword [esi + 4], eax
jne 0x4b01b5
mov ecx, dword [edi + 0x850]
xor eax, eax
xor edx, edx
mov dword [esp + 0x2c], ecx
test ecx, ecx
mov dword [esp + 0x40], edx
mov ecx, dword [esp + 0x70]
setne al
shl ecx, 3
sub ecx, dword [esp + 0x70]
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 0x4af976
push edx
mov edx, edi
lea ecx, [esp + 0x90]
call fcn.004b1210
add esp, 4
mov eax, ecx
mov ecx, dword [esp + 0x18]
push 0
push 1
push eax
push 1
push dword [edi + 0x238]
push dword [edi + 0x234]
push dword [edi]
call fcn.004a9430
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x8c]
push 0
push eax
push dword [edi]
push dword [esp + 0x78]
call fcn.004a9340
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.004aeec0
mov edx, eax
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x368]
mov dword [esp + 0x54], 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 0x4afac7
mov edi, dword [esp + 0x68]
mov eax, dword [ecx]
cmp dword [edi + eax], 0
mov edi, dword [esp + 0x28]
je 0x4afac3
lea eax, [esi + 1]
mov edx, edi
push eax
lea ecx, [esp + 0x90]
call fcn.004b1210
add esp, 4
mov eax, ecx
mov ecx, dword [esp + 0x18]
push 0
push 1
push eax
push 1
push dword [edi + 0x238]
push dword [edi + 0x234]
push dword [edi]
call fcn.004a9430
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x8c]
push 0
push eax
push dword [edi]
push dword [esp + 0x78]
call fcn.004a9340
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
test eax, eax
jne 0x4afa87
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.004aeec0
mov edx, dword [esp + 0x20]
jmp 0x4afa97
test ecx, ecx
jns 0x4af772
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x1c]
add eax, dword [edi + 0x18]
imul eax, dword [esi + 0x2b0]
add dword [esp + 0x10], eax
jmp 0x4af776
cmp eax, 4
jne 0x4afa9e
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 + 0x54], 0
jne 0x4afab7
cmp dword [esp + esi*4 + 0x128], 0
mov dword [esp + 0x54], 0
je 0x4afabf
mov dword [esp + 0x54], 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 0x4af9c0
cmp dword [edi + 0x850], 0
mov esi, dword [esp + 0x50]
je 0x4afb11
mov eax, dword [esi + 0x2ac]
mov dword [esp + 0x60], eax
test eax, eax
jne 0x4afb19
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x154]
mov dword [esp + 0x60], eax
jmp 0x4afb19
mov dword [esp + 0x60], 0x64
mov eax, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 0x24], ecx
test eax, eax
je 0x4afe9b
mov edx, dword [esp + 0x30]
nop
test edx, edx
js 0x4afb3c
cmp edx, ecx
jne 0x4afe8e
lea eax, [ecx + 2]
mov ecx, dword [esp + 0x18]
push eax
push dword [esi]
call fcn.004a9e30
cmp dword [esp + 0x40], 0
je 0x4afc6b
mov eax, dword [esp + 0x24]
mov edx, dword [edi + 0x260]
push ecx
push esi
mov eax, dword [esp + eax*4 + 0x100]
lea ecx, [esp + 0x4c]
push edi
mov dword [esp + 0x38], eax
call fcn.004b0da0
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edi, dword [esp + 0x18]
push 1
push dword [esp + ecx*4 + 0xe4]
mov eax, dword [edi]
lea ecx, [esp + 0x84]
push dword [esi]
push ecx
mov ecx, edi
call dword [eax + 0x14]
push dword [esi]
lea eax, [esp + 0x50]
mov ecx, edi
push dword [esp + 0x84]
push dword [esp + 0x84]
push eax
call fcn.004a9990
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
call fcn.004b1290
push dword [esi + 8]
mov ecx, dword [esp + 0x10]
mov edi, eax
mov eax, dword [esp + 0x2c]
push dword [eax + 8]
call fcn.004b1310
push edi
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x50]
lea eax, [esi + 0x2c]
mov edx, dword [edi + 0x260]
push eax
push dword [esp + 0x54]
lea eax, [edi + 0x264]
push eax
lea eax, [edi + 0x2c]
push eax
call fcn.004b0f00
mov edi, dword [esp + 0x40]
add esp, 0x1c
mov ecx, dword [esp + 0x2c]
mov eax, ecx
mov edx, dword [esp + 0x14]
sub eax, edx
mov dword [esp + edi*4 + 0xf8], eax
mov edi, dword [esp + 0x28]
test eax, eax
jg 0x4afc35
cmp ecx, 1
jl 0x4afc35
mov eax, dword [esi + 0x290]
jmp 0x4afc37
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 + 0x60]
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 0x4afc6f
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 dword [eax]
cmp dword [esp + eax*4 + 0x128], 0
je 0x4afe66
mov ecx, dword [edi - 8]
test ecx, ecx
jne 0x4afdc1
mov eax, dword [esp + 0x24]
mov edx, dword [edi]
push ecx
push esi
mov eax, dword [esp + eax*4 + 0x100]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x30]
push eax
call fcn.004b0da0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov edi, dword [esp + 0x18]
push 1
push dword [ecx]
mov eax, dword [edi]
lea ecx, [esp + 0x84]
push dword [esi]
push ecx
mov ecx, edi
call dword [eax + 0x14]
push dword [esi]
lea eax, [esp + 0x50]
mov ecx, edi
push dword [esp + 0x84]
push dword [esp + 0x84]
push eax
call fcn.004a9990
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
call fcn.004b1290
push dword [esi + 8]
mov ecx, dword [esp + 0x10]
mov edi, eax
mov eax, dword [esp + 0x2c]
push dword [eax + 8]
call fcn.004b1310
push edi
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x50]
lea eax, [esi + 0x2c]
mov edx, dword [edi]
push eax
push dword [esp + 0x54]
lea eax, [edi + 4]
push eax
mov eax, dword [esp + 0x40]
add eax, 0x2c
push eax
call fcn.004b0f00
mov edi, dword [esp + 0x40]
add esp, 0x1c
mov ecx, dword [esp + 0x74]
mov eax, ecx
mov edx, dword [esp + 0x14]
sub eax, edx
mov dword [esp + edi*4 + 0xf8], eax
mov edi, dword [esp + 0x38]
test eax, eax
jg 0x4afd80
cmp ecx, 1
jl 0x4afd80
mov eax, dword [esi + 0x29c]
jmp 0x4afd82
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 + 0x60]
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 0x4afe66
cmp ecx, 4
jne 0x4afe62
mov edi, dword [edi]
mov edx, edi
push ecx
push esi
push dword [esp + 0x30]
lea ecx, [esp + 0x50]
call fcn.004b0da0
mov eax, dword [esp + 0x34]
add esp, 0xc
mov ecx, dword [esp + 0xc]
push dword [esi + 8]
push dword [eax + 8]
call fcn.004b1310
push 0x10000
push eax
push dword [esp + 0x50]
lea eax, [esi + 0x2c]
mov edx, edi
push eax
push dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x28]
add eax, 4
push eax
mov eax, dword [esp + 0x40]
add eax, 0x2c
push eax
call fcn.004b0f00
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 + 0x14]
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 + 0x60]
imul edx
jmp 0x4afd9f
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 0x4afc90
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, eax
jb 0x4afb30
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x4aff90
cmp dword [edi + 0x850], ecx
jne 0x4aff90
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 + 0x78]
inc ecx
mov dword [esp + 0x74], eax
mov dword [edi + 0x12c], eax
lea eax, [esp + 0x168]
cmp dword [eax + ecx*4], edx
lea eax, [eax + ecx*4]
jl 0x4aff2d
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x5c]
nop dword [eax]
test edx, edx
jne 0x4aff14
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 0x4aff00
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x28]
test edx, edx
mov eax, ecx
cmovne eax, edx
mov edx, eax
mov dword [esp + 0x74], eax
cmp ecx, edx
jb 0x4aff53
nop
mov eax, dword [esp + ecx*4 + 0x168]
mov dword [esp + ecx*4 + 0x16c], eax
dec ecx
cmp ecx, edx
jae 0x4aff40
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x54]
mov dword [edi + 0x850], 1
cmp dword [edi + 0xc], 0
mov eax, dword [eax]
mov dword [esp + edx*4 + 0x168], eax
jl 0x4aff8c
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 0x4b037c
test ecx, ecx
je 0x4b037c
cmp dword [edx + 0x1c], 0
jge 0x4b037c
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 0x4b0074
mov eax, dword [esp + 0x88]
lea esi, [edi + 0x2b8]
mov ecx, dword [esp + 0x68]
add ecx, 4
mov dword [esp + 0x74], 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 + 0x40], ecx
cmp dword [esp + ecx*4 + 0x128], 0
je 0x4b0039
cmp dword [edx], 0
jne 0x4b0039
mov eax, dword [esi]
mov ecx, dword [esp + 0x68]
add edi, dword [ecx + eax + 4]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
mov dword [esp + eax*4 + 0xa0], edi
inc ecx
add edx, 0x58
add esi, 8
mov dword [esp + 0x40], ecx
cmp ecx, 0x10
jb 0x4b0011
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
inc edx
add dword [esp + 0x68], 4
add eax, 4
mov esi, dword [esp + 0x74]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], eax
cmp edx, dword [esp + 8]
jb 0x4afff2
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xa0]
lea edi, [eax - 1]
mov ecx, 1
cmp eax, ecx
jbe 0x4b0113
cmp edi, 8
jb 0x4b00f4
cmp dword [0x558084], 2
jl 0x4b00f4
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 0x4b00b0
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 0x4b0113
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 0x4b0100
xor eax, eax
mov dword [esp + 0x20], 0
xor edi, edi
cmp dword [esp + 8], eax
jbe 0x4b0169
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 0x4b0130
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x20], ecx
mov edi, dword [esp + 0x1c]
cmp eax, 1
je 0x4b01a9
push dword [edi + 4]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
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 0x4b01a9
mov dword [edi + 0x1c], eax
jmp 0x4b037c
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x1c], ecx
jmp 0x4b037c
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4b037c
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 0x4b037c
push 0
mov edx, edi
lea ecx, [esp + 0x90]
call fcn.004b1210
add esp, 4
mov eax, ecx
mov ecx, dword [esp + 0x18]
push 0
push 1
push eax
push 1
push dword [edi + 0x238]
push dword [edi + 0x234]
push dword [edi]
call fcn.004a9430
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x8c]
push 0
push eax
push dword [edi]
push dword [esp + 0x78]
call fcn.004a9340
push dword [esp + 8]
mov eax, dword [esp + 0x40]
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.004aeec0
test eax, eax
je 0x4b037c
mov ecx, dword [esp + 0x3c]
mov edx, dword [edi + 0x260]
push ecx
push ecx
mov eax, dword [ecx + 0x1c]
lea ecx, [esp + 0x4c]
push edi
mov dword [esp + 0x4c], eax
call fcn.004b0da0
mov ecx, dword [esp + 0x48]
add esp, 0xc
mov edi, dword [esp + 0x18]
mov eax, dword [ecx + 0x83c]
mov edx, dword [edi]
push 1
push dword [esp + eax*4 + 0xe4]
lea eax, [esp + 0x84]
push dword [ecx]
mov ecx, edi
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x3c]
mov ecx, edi
push dword [eax]
lea eax, [esp + 0x50]
push dword [esp + 0x84]
push dword [esp + 0x84]
push eax
call fcn.004a9990
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
call fcn.004b1290
mov ecx, dword [esp + 0xc]
mov edi, eax
mov eax, dword [esp + 0x3c]
push dword [eax + 8]
mov eax, dword [esp + 0x2c]
push dword [eax + 8]
call fcn.004b1310
mov ecx, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x40]
push eax
push dword [esp + 0x50]
mov edx, dword [ecx + 0x260]
lea eax, [edi + 0x2c]
push eax
push dword [esp + 0x54]
lea eax, [ecx + 0x264]
push eax
lea eax, [ecx + 0x2c]
push eax
lea ecx, [esp + 0x30]
call fcn.004b0f00
mov eax, dword [edi + 0x1c]
add esp, 0x1c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
cmp ecx, eax
jle 0x4b034f
xor ecx, ecx
cmp edx, 1
cmovge ecx, eax
mov dword [esp + 0x14], ecx
sub eax, ecx
mov dword [edi + 0x1c], eax
test eax, eax
jg 0x4b0365
cmp edx, 1
jl 0x4b0365
mov edx, dword [esi + 0x284]
jmp 0x4b0367
xor edx, edx
mov eax, dword [esi + 0x280]
imul eax, ecx
add eax, dword [esi + 0x27c]
add eax, edx
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x168]
inc eax
mov dword [esp + 0x78], eax
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
mov dword [esp + 0x64], eax
test ecx, ecx
jns 0x4af880
mov eax, dword [esp + 0x6c]
push eax
call fcn.004275d6
add esp, 4
cmp dword [esp + 0x34], 0
je 0x4b0555
mov ecx, dword [esp + 0x18]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esi + 0x238]
push dword [esi + 0x234]
push dword [esi]
call fcn.004a9cb0
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x1c]
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.004a9c50
mov eax, dword [esp + 8]
xor edi, edi
mov dword [esp + 0x70], edi
mov edx, 0x80000000
mov dword [esp + 0x40], edx
test eax, eax
je 0x4b0555
nop dword [eax]
cmp dword [esp + edi*4 + 0xe0], 0
jl 0x4b051a
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 0x260]
push ecx
push ecx
mov eax, dword [ecx + 0x1c]
lea ecx, [esp + 0x4c]
push esi
mov dword [esp + 0x70], eax
call fcn.004b0da0
mov eax, dword [esp + 0x48]
add esp, 0xc
mov ecx, dword [esp + 0x18]
push dword [eax]
lea eax, [esp + 0x50]
push dword [esp + edi*8 + 0x100]
push dword [esp + edi*8 + 0x100]
push eax
call fcn.004a9990
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
call fcn.004b1290
mov ecx, dword [esp + 0xc]
mov edi, eax
mov eax, dword [esp + 0x3c]
push dword [eax + 8]
push dword [esi + 8]
call fcn.004b1310
mov edx, dword [esi + 0x260]
lea ecx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x40]
push eax
push dword [esp + 0x50]
lea eax, [edi + 0x2c]
push eax
push dword [esp + 0x54]
lea eax, [esi + 0x264]
push eax
lea eax, [esi + 0x2c]
push eax
call fcn.004b0f00
mov eax, dword [edi + 0x1c]
add esp, 0x1c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x64]
cmp ecx, eax
jle 0x4b04dc
xor ecx, ecx
cmp edx, 1
cmovge ecx, eax
mov dword [esp + 0x14], ecx
sub eax, ecx
mov dword [edi + 0x1c], eax
test eax, eax
jg 0x4b04f2
cmp edx, 1
jl 0x4b04f2
mov edx, dword [esi + 0x284]
jmp 0x4b04f4
xor edx, edx
mov eax, dword [esi + 0x280]
mov edi, dword [esp + 0x70]
imul eax, ecx
add eax, dword [esi + 0x27c]
add eax, edx
mov edx, dword [esp + 0x40]
cmp edx, eax
cmovl edx, eax
mov eax, dword [esp + 8]
mov dword [esp + 0x40], edx
inc edi
mov dword [esp + 0x70], edi
cmp edi, eax
jb 0x4b0420
mov edi, dword [esp + 0x10]
cmp edx, 0x80000000
je 0x4b0559
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x158]
mov eax, 0x51eb851f
imul ecx, edx
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add edi, eax
jmp 0x4b0559
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 8]
xor ecx, ecx
test esi, esi
je 0x4b058f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
add edx, 0x34
nop
test eax, eax
js 0x4b0578
cmp eax, ecx
jne 0x4b0587
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 0x4b0570
push dword [esp + 0x5c]
call fcn.004275d6
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.004275c5
mov esp, ebp
pop ebp
ret 4