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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x768
mov eax, dword [0x54a2f8]
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.00499490
mov ecx, dword [edi + 0x14c]
cmp ecx, dword [edi + 0x148]
jae 0x4ad6a7
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.00499460
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4aec5f
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.00425a0b
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.004310c0
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 0x4ad720
imul eax, eax, 0x8dc
add eax, dword [esp + 0x5c]
mov dword [esp + 0x3c], eax
jmp 0x4ad728
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 0x4ad798
mov esi, dword [esp + 0xc]
lea edi, [edx + 0x834]
mov ecx, dword [edi - 0x834]
test ecx, ecx
je 0x4ad77e
push ecx
push dword [edi + 4]
push dword [edi]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.004a8520
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x24]
inc eax
add edi, 0x8dc
mov dword [esp + 0x34], eax
cmp eax, ecx
jb 0x4ad760
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.004310c0
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 0x4ad7eb
add edx, dword [esi + 0x24c]
mov edi, dword [esi + 0x250]
mov dword [esp + 0x58], edx
jmp 0x4ade05
cmp eax, 6
jne 0x4ad90e
push dword [esp + 0x5c]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, edi
call fcn.004aece0
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.004af460
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.004a8000
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
call fcn.004af950
mov ecx, dword [esp + 0xc]
mov edi, eax
mov eax, dword [esp + 0x34]
push dword [eax + 8]
push dword [esi + 8]
call fcn.004af9d0
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.004af5c0
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 0x4ad8ab
mov eax, dword [esi + 0x284]
jmp 0x4ad8ad
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 0x4ad8d4
mov ecx, dword [esi + 0x278]
jmp 0x4ad8d6
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 0x4ade05
cmp eax, 7
jne 0x4ade03
imul edx, dword [ecx + 0xc], 0x58
mov ecx, dword [edx + esi + 0x2e8]
add edx, esi
mov dword [esp + 8], edx
test ecx, ecx
js 0x4addac
jne 0x4ad967
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 0x4ad9e4
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 0x4ad98b
cmp eax, dword [edx + 4]
jne 0x4ad98b
xor edx, edx
jmp 0x4ad990
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 0x4addba
mov edi, dword [esp + 0xc]
lea eax, [edx + 0x2c4]
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x60], eax
jmp 0x4ad9e4
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.004aece0
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.004af460
mov eax, dword [esp + 0x14]
add esp, 0xc
mov dword [esp + 0x34], 0x10000
cmp dword [eax + 0x2b8], 0
jne 0x4ada7e
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 0x4ada5a
cmp dword [esp + eax*8 + 0x36c], ecx
jne 0x4ada5a
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.004a8000
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
call fcn.004af950
mov dword [esp + 0x34], eax
push dword [edi + 8]
mov ecx, dword [esp + 0x10]
push dword [esi + 8]
call fcn.004af9d0
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.004af5c0
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.0x4adae4
jmp dword [eax*4 + 0x4aec7c]
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 0x4adb0d
mov ecx, dword [edi + 8]
jmp 0x4adb0f
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.0x4adae4
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 0x4add83
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 0x4adbc0
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.0x4adae4
cmp eax, 9
jle 0x4adbe7
cmp eax, 0x1f
jne case.default.0x4adae4
mov edi, dword [esp + 0x30]
mov eax, dword [edi]
cmp eax, dword [esi]
je case.default.0x4adae4
push ecx
push 0
push edi
mov edx, 0x100
lea ecx, [esp + 0x50]
call fcn.004af460
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 0x4add83
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x10]
push edi
call fcn.004aec90
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 0x4adda4
nop dword [eax + eax]
mov esi, dword [esp + 0x50]
cmp dword [esp + 0x34], ecx
jne 0x4adc92
test edi, edi
jns 0x4add9c
lea edi, [edx + 1]
or eax, 0xffffffff
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], eax
jmp 0x4adcce
test eax, eax
jg 0x4adcce
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 0x4adcca
test edi, edi
jns 0x4add9c
mov edi, edx
mov eax, 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], eax
jmp 0x4adcce
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + edx*4 + 0x16c]
inc edx
mov dword [esp + 0x78], edx
test ecx, ecx
jns 0x4adc70
mov eax, dword [esp + 0x70]
cmp edi, eax
je 0x4add83
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.004310c0
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.004310c0
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.004310c0
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 0x4ad9e0
jmp 0x4addb6
lea eax, [edx - 1]
jmp 0x4adce2
or eax, 0xffffffff
jmp 0x4adce2
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 0x4addcc
mov ecx, dword [edx + 0x2f0]
jmp 0x4addce
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 0x4ade05
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 0x4ae125
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 0x4ade77
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 0x4ade6f
cmp dword [esi + 0x254], 1
mov dword [esp + 0x34], 1
je 0x4ade77
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.004af460
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 0x4adef4
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.00425a0b
mov ecx, dword [esp + 0x16c]
add esp, 4
mov dword [esp + 0x6c], eax
mov dword [esp + 0x78], 0
test ecx, ecx
js 0x4aea61
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 0x4aea3c
mov eax, dword [edi + 0x12c]
cmp eax, dword [esp + 0x58]
jg 0x4aea5d
mov edx, dword [esp + 0xc]
jne 0x4adf77
cmp dword [edx + 0x2c], ecx
jl 0x4aea5d
mov eax, dword [edi + 4]
test dword [esi + 4], eax
jne 0x4ae875
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 0x4ae036
push edx
mov edx, edi
lea ecx, [esp + 0x90]
call fcn.004af8d0
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.004a7aa0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x8c]
push 0
push eax
push dword [edi]
push dword [esp + 0x78]
call fcn.004a79b0
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.004ad580
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 0x4ae187
mov edi, dword [esp + 0x68]
mov eax, dword [ecx]
cmp dword [edi + eax], 0
mov edi, dword [esp + 0x28]
je 0x4ae183
lea eax, [esi + 1]
mov edx, edi
push eax
lea ecx, [esp + 0x90]
call fcn.004af8d0
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.004a7aa0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x8c]
push 0
push eax
push dword [edi]
push dword [esp + 0x78]
call fcn.004a79b0
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
test eax, eax
jne 0x4ae147
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.004ad580
mov edx, dword [esp + 0x20]
jmp 0x4ae157
test ecx, ecx
jns 0x4ade32
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 0x4ade36
cmp eax, 4
jne 0x4ae15e
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 0x4ae177
cmp dword [esp + esi*4 + 0x128], 0
mov dword [esp + 0x54], 0
je 0x4ae17f
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 0x4ae080
cmp dword [edi + 0x850], 0
mov esi, dword [esp + 0x50]
je 0x4ae1d1
mov eax, dword [esi + 0x2ac]
mov dword [esp + 0x60], eax
test eax, eax
jne 0x4ae1d9
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x154]
mov dword [esp + 0x60], eax
jmp 0x4ae1d9
mov dword [esp + 0x60], 0x64
mov eax, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 0x24], ecx
test eax, eax
je 0x4ae55b
mov edx, dword [esp + 0x30]
nop
test edx, edx
js 0x4ae1fc
cmp edx, ecx
jne 0x4ae54e
lea eax, [ecx + 2]
mov ecx, dword [esp + 0x18]
push eax
push dword [esi]
call fcn.004a84a0
cmp dword [esp + 0x40], 0
je 0x4ae32b
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.004af460
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.004a8000
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
call fcn.004af950
push dword [esi + 8]
mov ecx, dword [esp + 0x10]
mov edi, eax
mov eax, dword [esp + 0x2c]
push dword [eax + 8]
call fcn.004af9d0
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.004af5c0
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 0x4ae2f5
cmp ecx, 1
jl 0x4ae2f5
mov eax, dword [esi + 0x290]
jmp 0x4ae2f7
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 0x4ae32f
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 0x4ae526
mov ecx, dword [edi - 8]
test ecx, ecx
jne 0x4ae481
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.004af460
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.004a8000
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
call fcn.004af950
push dword [esi + 8]
mov ecx, dword [esp + 0x10]
mov edi, eax
mov eax, dword [esp + 0x2c]
push dword [eax + 8]
call fcn.004af9d0
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.004af5c0
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 0x4ae440
cmp ecx, 1
jl 0x4ae440
mov eax, dword [esi + 0x29c]
jmp 0x4ae442
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 0x4ae526
cmp ecx, 4
jne 0x4ae522
mov edi, dword [edi]
mov edx, edi
push ecx
push esi
push dword [esp + 0x30]
lea ecx, [esp + 0x50]
call fcn.004af460
mov eax, dword [esp + 0x34]
add esp, 0xc
mov ecx, dword [esp + 0xc]
push dword [esi + 8]
push dword [eax + 8]
call fcn.004af9d0
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.004af5c0
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 0x4ae45f
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 0x4ae350
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 0x4ae1f0
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x4ae650
cmp dword [edi + 0x850], ecx
jne 0x4ae650
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 0x4ae5ed
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x5c]
nop dword [eax]
test edx, edx
jne 0x4ae5d4
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 0x4ae5c0
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 0x4ae613
nop
mov eax, dword [esp + ecx*4 + 0x168]
mov dword [esp + ecx*4 + 0x16c], eax
dec ecx
cmp ecx, edx
jae 0x4ae600
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 0x4ae64c
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 0x4aea3c
test ecx, ecx
je 0x4aea3c
cmp dword [edx + 0x1c], 0
jge 0x4aea3c
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 0x4ae734
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 0x4ae6f9
cmp dword [edx], 0
jne 0x4ae6f9
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 0x4ae6d1
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 0x4ae6b2
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 0x4ae7d3
cmp edi, 8
jb 0x4ae7b4
cmp dword [0x54fe64], 2
jl 0x4ae7b4
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 0x4ae770
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 0x4ae7d3
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 0x4ae7c0
xor eax, eax
mov dword [esp + 0x20], 0
xor edi, edi
cmp dword [esp + 8], eax
jbe 0x4ae829
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 0x4ae7f0
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x20], ecx
mov edi, dword [esp + 0x1c]
cmp eax, 1
je 0x4ae869
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 0x4ae869
mov dword [edi + 0x1c], eax
jmp 0x4aea3c
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x1c], ecx
jmp 0x4aea3c
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4aea3c
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 0x4aea3c
push 0
mov edx, edi
lea ecx, [esp + 0x90]
call fcn.004af8d0
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.004a7aa0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x8c]
push 0
push eax
push dword [edi]
push dword [esp + 0x78]
call fcn.004a79b0
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.004ad580
test eax, eax
je 0x4aea3c
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.004af460
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.004a8000
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
call fcn.004af950
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.004af9d0
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.004af5c0
mov eax, dword [edi + 0x1c]
add esp, 0x1c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
cmp ecx, eax
jle 0x4aea0f
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 0x4aea25
cmp edx, 1
jl 0x4aea25
mov edx, dword [esi + 0x284]
jmp 0x4aea27
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 0x4adf40
mov eax, dword [esp + 0x6c]
push eax
call fcn.004259c8
add esp, 4
cmp dword [esp + 0x34], 0
je 0x4aec15
mov ecx, dword [esp + 0x18]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esi + 0x238]
push dword [esi + 0x234]
push dword [esi]
call fcn.004a8320
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.004a82c0
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 0x4aec15
nop dword [eax]
cmp dword [esp + edi*4 + 0xe0], 0
jl 0x4aebda
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.004af460
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.004a8000
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
call fcn.004af950
mov ecx, dword [esp + 0xc]
mov edi, eax
mov eax, dword [esp + 0x3c]
push dword [eax + 8]
push dword [esi + 8]
call fcn.004af9d0
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.004af5c0
mov eax, dword [edi + 0x1c]
add esp, 0x1c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x64]
cmp ecx, eax
jle 0x4aeb9c
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 0x4aebb2
cmp edx, 1
jl 0x4aebb2
mov edx, dword [esi + 0x284]
jmp 0x4aebb4
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 0x4aeae0
mov edi, dword [esp + 0x10]
cmp edx, 0x80000000
je 0x4aec19
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 0x4aec19
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 8]
xor ecx, ecx
test esi, esi
je 0x4aec4f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
add edx, 0x34
nop
test eax, eax
js 0x4aec38
cmp eax, ecx
jne 0x4aec47
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 0x4aec30
push dword [esp + 0x5c]
call fcn.004259c8
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.004259b7
mov esp, ebp
pop ebp
ret 4