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

Disassembly:
sub esp, 0x24
mov ecx, dword [esp + 0x28]
mov eax, dword [0xa6a1ec]
push ebx
push ebp
shl ecx, 4
push esi
push edi
mov edi, dword [ecx + eax + 0xc]
mov ecx, dword [esp + 0x3c]
shl ecx, 4
xor ebx, ebx
mov dword [esp + 0x10], edi
mov ebp, dword [ecx + eax + 0xc]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x4c30a2
mov esi, dword [edi + 0x74]
dec esi
imul esi, dword [edi + 0x70]
jmp 0x4c30a4
xor esi, esi
push esi
push edi
mov dword [esp + 0x1c], esi
call fcn.004c2850
add esp, 8
test eax, eax
jne 0x4c33d3
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x70]
add eax, 0xfffffffe
test eax, eax
mov dword [esp + 0x18], eax
jle 0x4c33d3
mov ebx, dword [ebp + 0x70]
lea edx, [esi + esi*4]
mov dword [esp + 0x1c], ebx
lea eax, [esi + edx*2]
lea edi, [edi + eax*4]
mov dword [esp + 0x38], 0
cmp ebx, 0x41
jge 0x4c322c
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c3102
mov eax, dword [ebp + 0x74]
dec eax
imul eax, ebx
jmp 0x4c3104
xor eax, eax
lea esi, [ebx - 1]
xor edx, edx
test esi, esi
jle 0x4c321a
lea ecx, [eax + eax*4 + 0x14]
lea eax, [eax + ecx*2 + 4]
lea ecx, [ebp + eax*4]
fld dword [edi + 0x80]
fsub dword [ecx - 0x30]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c320e
fld dword [edi + 0x84]
fsub dword [ecx - 0x2c]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c320e
fld dword [edi + 0x88]
fsub dword [ecx - 0x28]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c320e
fld dword [edi + 0xd8]
fsub dword [ecx - 4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c320e
fld dword [edi + 0xdc]
fsub dword [ecx]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c320e
fld dword [edi + 0xe0]
fsub dword [ecx + 4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c320e
fld dword [ecx - 0x30]
fsub dword [ecx - 4]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c3402
fld dword [ecx - 0x2c]
fsub dword [ecx]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c3402
fld dword [ecx - 0x28]
fsub dword [ecx + 4]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c3402
inc edx
add ecx, 0x2c
cmp edx, esi
jl 0x4c311d
mov eax, dword [esp + 0x38]
inc eax
cmp eax, 2
mov dword [esp + 0x38], eax
jl 0x4c30e8
mov ecx, dword [ebp + 0x74]
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x28], 0x41
jge 0x4c33b1
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c3253
lea eax, [ebx - 1]
jmp 0x4c3255
xor eax, eax
mov edx, dword [esp + 0x28]
xor ebx, ebx
lea ebp, [edx - 1]
test ebp, ebp
jle 0x4c3397
mov esi, dword [esp + 0x1c]
lea edx, [eax + eax*4]
lea ecx, [esi + esi*4]
lea esi, [esi + ecx*2]
lea ecx, [eax + edx*2]
mov edx, dword [esp + 0x3c]
shl esi, 2
lea ecx, [edx + ecx*4 + 0x88]
mov edx, dword [esp + 0x1c]
add eax, edx
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
mov edx, dword [esp + 0x3c]
lea edx, [edx + eax*4 + 0x88]
fld dword [edi + 0x80]
fsub dword [ecx - 8]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c338a
fld dword [edi + 0x84]
fsub dword [ecx - 4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c338a
fld dword [edi + 0x88]
fsub dword [ecx]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c338a
fld dword [edi + 0xd8]
fsub dword [edx - 8]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c338a
fld dword [edi + 0xdc]
fsub dword [edx - 4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c338a
fld dword [edi + 0xe0]
fsub dword [edx]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c338a
fld dword [ecx - 8]
fsub dword [edx - 8]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c3444
fld dword [ecx - 4]
fsub dword [edx - 4]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c3444
fld dword [ecx]
fsub dword [edx]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c3444
inc ebx
add ecx, esi
add edx, esi
cmp ebx, ebp
jl 0x4c329b
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x38], eax
jl 0x4c323b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add eax, 2
add edi, 0x58
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4c30e0
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
inc ebx
cmp ebx, 2
mov dword [esp + 0x24], ebx
jl 0x4c3094
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x4c3484
mov ebp, dword [esi + 0x70]
dec ebp
jmp 0x4c3486
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c3410
mov ecx, dword [ebp + 0x74]
dec ecx
jmp 0x4c3412
xor ecx, ecx
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov edi, dword [esi + 0x78]
mov edi, dword [edi + eax*4 + 4]
push edi
mov edi, dword [esp + 0x18]
add eax, edi
inc edx
lea edi, [eax + eax*4]
lea eax, [eax + edi*2]
lea eax, [esi + eax*4 + 0xac]
push eax
push ecx
push edx
push ebp
call fcn.004d7500
jmp 0x4c4127
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c3456
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x70]
dec ecx
jmp 0x4c3458
xor ecx, ecx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov esi, dword [edx + 0x78]
mov esi, dword [esi + eax*4 + 4]
push esi
mov esi, dword [esp + 0x18]
add eax, esi
inc ebx
lea esi, [eax + eax*4]
lea eax, [eax + esi*2]
lea edx, [edx + eax*4 + 0xac]
push edx
push ecx
push ebx
jmp 0x4c411d
xor ebp, ebp
push ebp
push esi
mov dword [esp + 0x1c], ebp
call fcn.004c2950
add esp, 8
test eax, eax
jne 0x4c3829
mov eax, dword [esi + 0x74]
xor ebx, ebx
add eax, 0xfffffffe
mov dword [esp + 0x20], ebx
test eax, eax
mov dword [esp + 0x30], eax
jle 0x4c3829
mov eax, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 0x70]
mov dword [esp + 0x1c], eax
jmp 0x4c34d7
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x38], ecx
jmp 0x4c34d7
mov eax, dword [esp + 0x1c]
cmp eax, 0x41
jge 0x4c3654
test ecx, ecx
je 0x4c34f1
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x74]
dec ecx
imul ecx, eax
jmp 0x4c34f3
xor ecx, ecx
dec eax
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4c3642
mov edi, dword [esp + 0x10]
mov esi, dword [edi + 0x70]
mov eax, esi
imul eax, ebx
add eax, ebp
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
lea edx, [ecx + ecx*4 + 0x14]
lea edi, [edi + eax*4 + 0x80]
lea eax, [ecx + edx*2 + 4]
mov ecx, dword [esp + 0x3c]
lea ecx, [ecx + eax*4]
fld dword [edi]
fsub dword [ecx - 0x30]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3629
fld dword [edi + 4]
fsub dword [ecx - 0x2c]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3629
fld dword [edi + 8]
fsub dword [ecx - 0x28]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3629
lea eax, [ebx + 2]
imul eax, esi
add eax, ebp
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
mov edx, dword [esp + 0x10]
fld dword [edx + eax*4 + 0x80]
fsub dword [ecx - 4]
lea edx, [edx + eax*4 + 0x80]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3629
fld dword [edx + 4]
fsub dword [ecx]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3629
fld dword [edx + 8]
fsub dword [ecx + 4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3629
fld dword [ecx - 0x30]
fsub dword [ecx - 4]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c3860
fld dword [ecx - 0x2c]
fsub dword [ecx]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c3860
fld dword [ecx - 0x28]
fsub dword [ecx + 4]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c3860
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
inc eax
add ecx, 0x2c
dec edx
mov dword [esp + 0x18], eax
cmp eax, edx
jl 0x4c352e
mov ecx, dword [esp + 0x38]
inc ecx
cmp ecx, 2
mov dword [esp + 0x38], ecx
jl 0x4c34d3
mov eax, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 0x74]
mov dword [esp + 0x28], eax
jmp 0x4c366b
mov eax, dword [esp + 0x28]
cmp eax, 0x41
jge 0x4c3816
test ecx, ecx
je 0x4c367f
mov ecx, dword [esp + 0x1c]
dec ecx
jmp 0x4c3681
xor ecx, ecx
dec eax
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4c37fc
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ebx, dword [ebp + 0x70]
mov eax, ebx
imul eax, dword [esp + 0x20]
add eax, esi
mov esi, dword [esp + 0x3c]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
lea ebp, [ebp + eax*4 + 0x80]
mov eax, dword [esp + 0x1c]
lea edx, [eax + eax*4]
lea edi, [eax + edx*2]
lea edx, [ecx + ecx*4]
shl edi, 2
add eax, ecx
lea edx, [ecx + edx*2]
lea ecx, [eax + eax*4]
lea edx, [esi + edx*4 + 0x88]
lea eax, [eax + ecx*2]
lea ecx, [esi + eax*4 + 0x88]
fld dword [ebp]
fsub dword [edx - 8]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c37e2
fld dword [ebp + 4]
fsub dword [edx - 4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c37e2
fld dword [ebp + 8]
fsub dword [edx]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c37e2
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
add eax, 2
imul eax, ebx
add eax, esi
lea esi, [eax + eax*4]
lea eax, [eax + esi*2]
mov esi, dword [esp + 0x10]
fld dword [esi + eax*4 + 0x80]
fsub dword [ecx - 8]
lea esi, [esi + eax*4 + 0x80]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c37e2
fld dword [esi + 4]
fsub dword [ecx - 4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c37e2
fld dword [esi + 8]
fsub dword [ecx]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c37e2
fld dword [edx - 8]
fsub dword [ecx - 8]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c38ae
fld dword [edx - 4]
fsub dword [ecx - 4]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c38ae
fld dword [edx]
fsub dword [ecx]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c38ae
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
inc eax
add edx, edi
add ecx, edi
dec esi
cmp eax, esi
mov dword [esp + 0x18], eax
jl 0x4c36e0
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
inc ecx
cmp ecx, 2
mov dword [esp + 0x38], ecx
jl 0x4c3667
mov eax, dword [esp + 0x30]
add ebx, 2
cmp ebx, eax
mov dword [esp + 0x20], ebx
jl 0x4c34c7
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 2
mov dword [esp + 0x24], eax
jl 0x4c33e9
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x4c38f2
mov ecx, dword [eax + 0x74]
dec ecx
imul ecx, dword [eax + 0x70]
jmp 0x4c38f4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c3872
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 0x74]
dec edx
jmp 0x4c3874
xor edx, edx
mov esi, dword [esp + 0x10]
lea ecx, [ebx + 1]
mov eax, dword [esi + 0x7c]
mov eax, dword [eax + ecx*4]
push eax
mov eax, dword [esi + 0x70]
imul eax, ecx
add eax, ebp
lea ecx, [eax + eax*4]
lea eax, [eax + ecx*2]
lea ecx, [esi + eax*4 + 0x80]
mov eax, dword [esp + 0x40]
push ecx
push edx
mov edx, dword [esp + 0x24]
inc edx
push edx
push eax
call fcn.004d7500
jmp 0x4c4127
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c38c0
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + 0x70]
dec esi
jmp 0x4c38c2
xor esi, esi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
inc ecx
mov ebp, dword [esp + 0x14]
mov eax, dword [edx + 0x7c]
mov eax, dword [eax + ecx*4]
push eax
mov eax, dword [edx + 0x70]
imul eax, ecx
add eax, ebp
lea ecx, [eax + eax*4]
lea eax, [eax + ecx*2]
lea ecx, [edx + eax*4 + 0x80]
push ecx
push esi
jmp 0x4c4117
xor ecx, ecx
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c2850
add esp, 8
test eax, eax
jne 0x4c3c41
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x70]
dec eax
cmp eax, 1
mov dword [esp + 0x20], eax
jle 0x4c3c41
mov edx, dword [esp + 0x14]
lea ecx, [eax*4 + 4]
add eax, edx
mov dword [esp + 0x28], ecx
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esp + 0x10]
lea edi, [eax + edx*4 + 0x80]
mov ebp, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov ebx, dword [ebp + 0x70]
cmp ebx, 0x41
jge 0x4c3a7b
test ecx, ecx
je 0x4c3964
mov eax, dword [ebp + 0x74]
dec eax
imul eax, ebx
jmp 0x4c3966
xor eax, eax
lea esi, [ebx - 1]
xor edx, edx
test esi, esi
jle 0x4c3a6d
lea ecx, [eax + eax*4 + 0x14]
lea eax, [eax + ecx*2 + 4]
lea ecx, [ebp + eax*4]
fld dword [edi]
fsub dword [ecx - 0x30]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3a5d
fld dword [edi + 4]
fsub dword [ecx - 0x2c]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3a5d
fld dword [edi + 8]
fsub dword [ecx - 0x28]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3a5d
fld dword [edi - 0x58]
fsub dword [ecx - 4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3a5d
fld dword [edi - 0x54]
fsub dword [ecx]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3a5d
fld dword [edi - 0x50]
fsub dword [ecx + 4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3a5d
fld dword [ecx - 0x30]
fsub dword [ecx - 4]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c3c67
fld dword [ecx - 0x2c]
fsub dword [ecx]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c3c67
fld dword [ecx - 0x28]
fsub dword [ecx + 4]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c3c67
inc edx
add ecx, 0x2c
cmp edx, esi
jl 0x4c397f
mov ecx, dword [esp + 0x38]
inc ecx
cmp ecx, 2
mov dword [esp + 0x38], ecx
jl 0x4c394e
xor esi, esi
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x74]
cmp ecx, 0x41
jge 0x4c3c1f
test esi, esi
je 0x4c3a9f
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x70]
dec eax
jmp 0x4c3aa1
xor eax, eax
dec ecx
mov dword [esp + 0x18], 0
test ecx, ecx
mov dword [esp + 0x30], ecx
jle 0x4c3c11
mov edx, dword [esp + 0x3c]
mov ebx, dword [edx + 0x70]
lea ecx, [ebx + ebx*4]
lea esi, [ebx + ecx*2]
lea ecx, [eax + eax*4]
shl esi, 2
lea ecx, [eax + ecx*2]
add eax, ebx
lea ebp, [eax + eax*4]
lea ecx, [edx + ecx*4 + 0x88]
lea eax, [eax + ebp*2]
mov ebp, dword [esp + 0x30]
lea edx, [edx + eax*4 + 0x88]
fld dword [edi]
fsub dword [ecx - 8]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3bb6
fld dword [edi + 4]
fsub dword [ecx - 4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3bb6
fld dword [edi + 8]
fsub dword [ecx]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3bb6
fld dword [edi - 0x58]
fsub dword [edx - 8]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3bb6
fld dword [edi - 0x54]
fsub dword [edx - 4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3bb6
fld dword [edi - 0x50]
fsub dword [edx]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3bb6
fld dword [ecx - 8]
fsub dword [edx - 8]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c3bd1
fld dword [ecx - 4]
fsub dword [edx - 4]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c3bd1
fld dword [ecx]
fsub dword [edx]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c3bd1
mov eax, dword [esp + 0x18]
add ecx, esi
inc eax
add edx, esi
cmp eax, ebp
mov dword [esp + 0x18], eax
jl 0x4c3ae6
mov esi, dword [esp + 0x38]
jmp 0x4c3c11
mov esi, dword [esp + 0x38]
test esi, esi
je 0x4c3bdc
dec ebx
jmp 0x4c3bde
xor ebx, ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov edx, dword [ecx + 0x78]
mov ecx, dword [edx + eax]
mov eax, dword [esp + 0x18]
lea edx, [edi - 0x2c]
push ecx
mov ecx, dword [esp + 0x40]
push edx
inc eax
push ebx
push eax
push ecx
call fcn.004d7730
add esp, 0x14
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x4c412a
inc esi
cmp esi, 2
mov dword [esp + 0x38], esi
jl 0x4c3a81
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
sub eax, 2
sub esi, 8
sub edi, 0x58
cmp eax, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], esi
jg 0x4c3941
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 2
mov dword [esp + 0x24], eax
jl 0x4c3843
xor eax, eax
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x4c3cc6
mov eax, dword [ecx + 0x70]
dec eax
jmp 0x4c3cc8
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c3c75
mov ecx, dword [ebp + 0x74]
dec ecx
jmp 0x4c3c77
xor ecx, ecx
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov edi, dword [esi + 0x78]
mov edi, dword [edi + eax*4 + 4]
push edi
mov edi, dword [esp + 0x18]
add eax, edi
inc edx
lea edi, [eax + eax*4]
lea eax, [eax + edi*2]
lea eax, [esi + eax*4 + 0x54]
push eax
push ecx
push edx
push ebp
call fcn.004d7500
mov edx, dword [esp + 0x40]
add esp, 0x14
mov dword [eax + 0x6c], 0
mov ecx, dword [0xa6a1ec]
pop edi
pop esi
mov dword [edx + ecx + 0xc], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret
xor eax, eax
push eax
push ecx
mov dword [esp + 0x1c], eax
call fcn.004c2950
add esp, 8
test eax, eax
jne 0x4c4056
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 0x74]
dec ebp
cmp ebp, 1
jle 0x4c4056
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 0x70]
mov dword [esp + 0x1c], edx
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x38], ebx
cmp esi, 0x41
jge 0x4c3e8b
test ebx, ebx
je 0x4c3d22
mov ecx, dword [edx + 0x74]
dec ecx
imul ecx, esi
jmp 0x4c3d24
xor ecx, ecx
lea eax, [esi - 1]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4c3e7d
mov esi, dword [edi + 0x70]
mov ebx, dword [esp + 0x14]
mov eax, esi
imul eax, ebp
add eax, ebx
lea ebx, [eax + eax*4]
lea eax, [eax + ebx*2]
lea ebx, [edi + eax*4 + 0x80]
lea eax, [ecx + ecx*4 + 0x14]
lea ecx, [ecx + eax*2 + 4]
lea ecx, [edx + ecx*4]
fld dword [ebx]
fsub dword [ecx - 0x30]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3e58
fld dword [ebx + 4]
fsub dword [ecx - 0x2c]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3e58
fld dword [ebx + 8]
fsub dword [ecx - 0x28]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3e58
lea eax, [ebp - 2]
mov edx, dword [esp + 0x14]
imul eax, esi
add eax, edx
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
fld dword [edi + eax*4 + 0x80]
fsub dword [ecx - 4]
lea edx, [edi + eax*4 + 0x80]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3e58
fld dword [edx + 4]
fsub dword [ecx]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3e58
fld dword [edx + 8]
fsub dword [ecx + 4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c3e58
fld dword [ecx - 0x30]
fsub dword [ecx - 4]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c4072
fld dword [ecx - 0x2c]
fsub dword [ecx]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c4072
fld dword [ecx - 0x28]
fsub dword [ecx + 4]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c4072
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
inc eax
add ecx, 0x2c
dec edx
mov dword [esp + 0x18], eax
cmp eax, edx
jl 0x4c3d5d
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x38]
inc ebx
cmp ebx, 2
mov dword [esp + 0x38], ebx
jl 0x4c3d0c
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x38], eax
mov edx, dword [ecx + 0x74]
mov dword [esp + 0x28], edx
jmp 0x4c3ea2
mov edx, dword [esp + 0x28]
cmp edx, 0x41
jge 0x4c404a
test eax, eax
je 0x4c3eb8
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 1]
jmp 0x4c3eba
xor ecx, ecx
lea eax, [edx - 1]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4c4038
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ebx, dword [edx + 0x70]
mov eax, ebx
imul eax, ebp
add eax, esi
lea esi, [eax + eax*4]
lea eax, [eax + esi*2]
mov esi, dword [esp + 0x3c]
lea edx, [edx + eax*4 + 0x80]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
lea edx, [eax + eax*4]
lea edi, [eax + edx*2]
lea edx, [ecx + ecx*4]
shl edi, 2
add eax, ecx
lea edx, [ecx + edx*2]
lea ecx, [eax + eax*4]
lea edx, [esi + edx*4 + 0x88]
lea eax, [eax + ecx*2]
lea ecx, [esi + eax*4 + 0x88]
mov esi, dword [esp + 0x20]
fld dword [esi]
fsub dword [edx - 8]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c401e
fld dword [esi + 4]
fsub dword [edx - 4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c401e
fld dword [esi + 8]
fsub dword [edx]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c401e
lea eax, [ebp - 2]
mov esi, dword [esp + 0x14]
imul eax, ebx
add eax, esi
lea esi, [eax + eax*4]
lea eax, [eax + esi*2]
mov esi, dword [esp + 0x10]
fld dword [esi + eax*4 + 0x80]
fsub dword [ecx - 8]
lea esi, [esi + eax*4 + 0x80]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c401e
fld dword [esi + 4]
fsub dword [ecx - 4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c401e
fld dword [esi + 8]
fsub dword [ecx]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c401e
fld dword [edx - 8]
fsub dword [ecx - 8]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c40dd
fld dword [edx - 4]
fsub dword [ecx - 4]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c40dd
fld dword [edx]
fsub dword [ecx]
fabs
fcomp qword [0x5369d8]
fnstsw ax
test ah, 5
jp 0x4c40dd
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
inc eax
add edx, edi
add ecx, edi
dec esi
cmp eax, esi
mov dword [esp + 0x18], eax
jl 0x4c3f1d
mov eax, dword [esp + 0x38]
inc eax
cmp eax, 2
mov dword [esp + 0x38], eax
jl 0x4c3e9e
sub ebp, 2
cmp ebp, 1
jg 0x4c3cfa
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 2
mov dword [esp + 0x24], eax
jl 0x4c3c59
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c4084
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x74]
dec ecx
jmp 0x4c4086
xor ecx, ecx
mov edx, dword [edi + 0x7c]
dec ebp
mov eax, dword [edx + ebp*4 + 8]
push eax
mov eax, dword [edi + 0x70]
imul eax, ebp
add eax, dword [esp + 0x18]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
lea edx, [edi + eax*4 + 0x80]
mov eax, dword [esp + 0x1c]
push edx
push ecx
mov ecx, dword [esp + 0x48]
inc eax
push eax
push ecx
call fcn.004d7500
mov ecx, dword [esp + 0x40]
add esp, 0x14
mov dword [eax + 0x6c], 0
mov edx, dword [0xa6a1ec]
pop edi
pop esi
mov dword [ecx + edx + 0xc], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c40ef
mov edx, dword [esp + 0x3c]
mov edx, dword [edx + 0x70]
dec edx
jmp 0x4c40f1
xor edx, edx
mov ecx, dword [esp + 0x10]
dec ebp
mov eax, dword [ecx + 0x7c]
mov eax, dword [eax + ebp*4 + 8]
push eax
mov eax, dword [ecx + 0x70]
imul eax, ebp
add eax, dword [esp + 0x18]
lea esi, [eax + eax*4]
lea eax, [eax + esi*2]
lea ecx, [ecx + eax*4 + 0x80]
push ecx
push edx
mov edx, dword [esp + 0x24]
inc edx
push edx
mov eax, dword [esp + 0x4c]
push eax
call fcn.004d7730
add esp, 0x14
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x6c], 0
mov ecx, dword [0xa6a1ec]
pop edi
pop esi
pop ebp
mov dword [edx + ecx + 0xc], eax
mov eax, 1
pop ebx
add esp, 0x24
ret