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

Disassembly:
sub esp, 0x24
mov ecx, dword [esp + 0x28]
mov eax, dword [0xa6a1ac]
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 0x4c3132
mov esi, dword [edi + 0x74]
dec esi
imul esi, dword [edi + 0x70]
jmp 0x4c3134
xor esi, esi
push esi
push edi
mov dword [esp + 0x1c], esi
call fcn.004c28e0
add esp, 8
test eax, eax
jne 0x4c3463
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x70]
add eax, 0xfffffffe
test eax, eax
mov dword [esp + 0x18], eax
jle 0x4c3463
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 0x4c32bc
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c3192
mov eax, dword [ebp + 0x74]
dec eax
imul eax, ebx
jmp 0x4c3194
xor eax, eax
lea esi, [ebx - 1]
xor edx, edx
test esi, esi
jle 0x4c32aa
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c329e
fld dword [edi + 0x84]
fsub dword [ecx - 0x2c]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c329e
fld dword [edi + 0x88]
fsub dword [ecx - 0x28]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c329e
fld dword [edi + 0xd8]
fsub dword [ecx - 4]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c329e
fld dword [edi + 0xdc]
fsub dword [ecx]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c329e
fld dword [edi + 0xe0]
fsub dword [ecx + 4]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c329e
fld dword [ecx - 0x30]
fsub dword [ecx - 4]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c3492
fld dword [ecx - 0x2c]
fsub dword [ecx]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c3492
fld dword [ecx - 0x28]
fsub dword [ecx + 4]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c3492
inc edx
add ecx, 0x2c
cmp edx, esi
jl 0x4c31ad
mov eax, dword [esp + 0x38]
inc eax
cmp eax, 2
mov dword [esp + 0x38], eax
jl 0x4c3178
mov ecx, dword [ebp + 0x74]
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x28], 0x41
jge 0x4c3441
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c32e3
lea eax, [ebx - 1]
jmp 0x4c32e5
xor eax, eax
mov edx, dword [esp + 0x28]
xor ebx, ebx
lea ebp, [edx - 1]
test ebp, ebp
jle 0x4c3427
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c341a
fld dword [edi + 0x84]
fsub dword [ecx - 4]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c341a
fld dword [edi + 0x88]
fsub dword [ecx]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c341a
fld dword [edi + 0xd8]
fsub dword [edx - 8]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c341a
fld dword [edi + 0xdc]
fsub dword [edx - 4]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c341a
fld dword [edi + 0xe0]
fsub dword [edx]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c341a
fld dword [ecx - 8]
fsub dword [edx - 8]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c34d4
fld dword [ecx - 4]
fsub dword [edx - 4]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c34d4
fld dword [ecx]
fsub dword [edx]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c34d4
inc ebx
add ecx, esi
add edx, esi
cmp ebx, ebp
jl 0x4c332b
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 0x4c32cb
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 0x4c3170
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
inc ebx
cmp ebx, 2
mov dword [esp + 0x24], ebx
jl 0x4c3124
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x4c3514
mov ebp, dword [esi + 0x70]
dec ebp
jmp 0x4c3516
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c34a0
mov ecx, dword [ebp + 0x74]
dec ecx
jmp 0x4c34a2
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.004d7590
jmp 0x4c41b7
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c34e6
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x70]
dec ecx
jmp 0x4c34e8
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 0x4c41ad
xor ebp, ebp
push ebp
push esi
mov dword [esp + 0x1c], ebp
call fcn.004c29e0
add esp, 8
test eax, eax
jne 0x4c38b9
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 0x4c38b9
mov eax, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 0x70]
mov dword [esp + 0x1c], eax
jmp 0x4c3567
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x38], ecx
jmp 0x4c3567
mov eax, dword [esp + 0x1c]
cmp eax, 0x41
jge 0x4c36e4
test ecx, ecx
je 0x4c3581
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x74]
dec ecx
imul ecx, eax
jmp 0x4c3583
xor ecx, ecx
dec eax
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4c36d2
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c36b9
fld dword [edi + 4]
fsub dword [ecx - 0x2c]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c36b9
fld dword [edi + 8]
fsub dword [ecx - 0x28]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c36b9
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c36b9
fld dword [edx + 4]
fsub dword [ecx]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c36b9
fld dword [edx + 8]
fsub dword [ecx + 4]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c36b9
fld dword [ecx - 0x30]
fsub dword [ecx - 4]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c38f0
fld dword [ecx - 0x2c]
fsub dword [ecx]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c38f0
fld dword [ecx - 0x28]
fsub dword [ecx + 4]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c38f0
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 0x4c35be
mov ecx, dword [esp + 0x38]
inc ecx
cmp ecx, 2
mov dword [esp + 0x38], ecx
jl 0x4c3563
mov eax, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 0x74]
mov dword [esp + 0x28], eax
jmp 0x4c36fb
mov eax, dword [esp + 0x28]
cmp eax, 0x41
jge 0x4c38a6
test ecx, ecx
je 0x4c370f
mov ecx, dword [esp + 0x1c]
dec ecx
jmp 0x4c3711
xor ecx, ecx
dec eax
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4c388c
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3872
fld dword [ebp + 4]
fsub dword [edx - 4]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3872
fld dword [ebp + 8]
fsub dword [edx]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3872
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3872
fld dword [esi + 4]
fsub dword [ecx - 4]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3872
fld dword [esi + 8]
fsub dword [ecx]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3872
fld dword [edx - 8]
fsub dword [ecx - 8]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c393e
fld dword [edx - 4]
fsub dword [ecx - 4]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c393e
fld dword [edx]
fsub dword [ecx]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c393e
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 0x4c3770
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 0x4c36f7
mov eax, dword [esp + 0x30]
add ebx, 2
cmp ebx, eax
mov dword [esp + 0x20], ebx
jl 0x4c3557
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 2
mov dword [esp + 0x24], eax
jl 0x4c3479
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x4c3982
mov ecx, dword [eax + 0x74]
dec ecx
imul ecx, dword [eax + 0x70]
jmp 0x4c3984
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c3902
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 0x74]
dec edx
jmp 0x4c3904
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.004d7590
jmp 0x4c41b7
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c3950
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + 0x70]
dec esi
jmp 0x4c3952
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 0x4c41a7
xor ecx, ecx
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c28e0
add esp, 8
test eax, eax
jne 0x4c3cd1
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x70]
dec eax
cmp eax, 1
mov dword [esp + 0x20], eax
jle 0x4c3cd1
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 0x4c3b0b
test ecx, ecx
je 0x4c39f4
mov eax, dword [ebp + 0x74]
dec eax
imul eax, ebx
jmp 0x4c39f6
xor eax, eax
lea esi, [ebx - 1]
xor edx, edx
test esi, esi
jle 0x4c3afd
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3aed
fld dword [edi + 4]
fsub dword [ecx - 0x2c]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3aed
fld dword [edi + 8]
fsub dword [ecx - 0x28]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3aed
fld dword [edi - 0x58]
fsub dword [ecx - 4]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3aed
fld dword [edi - 0x54]
fsub dword [ecx]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3aed
fld dword [edi - 0x50]
fsub dword [ecx + 4]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3aed
fld dword [ecx - 0x30]
fsub dword [ecx - 4]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c3cf7
fld dword [ecx - 0x2c]
fsub dword [ecx]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c3cf7
fld dword [ecx - 0x28]
fsub dword [ecx + 4]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c3cf7
inc edx
add ecx, 0x2c
cmp edx, esi
jl 0x4c3a0f
mov ecx, dword [esp + 0x38]
inc ecx
cmp ecx, 2
mov dword [esp + 0x38], ecx
jl 0x4c39de
xor esi, esi
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x74]
cmp ecx, 0x41
jge 0x4c3caf
test esi, esi
je 0x4c3b2f
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x70]
dec eax
jmp 0x4c3b31
xor eax, eax
dec ecx
mov dword [esp + 0x18], 0
test ecx, ecx
mov dword [esp + 0x30], ecx
jle 0x4c3ca1
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3c46
fld dword [edi + 4]
fsub dword [ecx - 4]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3c46
fld dword [edi + 8]
fsub dword [ecx]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3c46
fld dword [edi - 0x58]
fsub dword [edx - 8]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3c46
fld dword [edi - 0x54]
fsub dword [edx - 4]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3c46
fld dword [edi - 0x50]
fsub dword [edx]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3c46
fld dword [ecx - 8]
fsub dword [edx - 8]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c3c61
fld dword [ecx - 4]
fsub dword [edx - 4]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c3c61
fld dword [ecx]
fsub dword [edx]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c3c61
mov eax, dword [esp + 0x18]
add ecx, esi
inc eax
add edx, esi
cmp eax, ebp
mov dword [esp + 0x18], eax
jl 0x4c3b76
mov esi, dword [esp + 0x38]
jmp 0x4c3ca1
mov esi, dword [esp + 0x38]
test esi, esi
je 0x4c3c6c
dec ebx
jmp 0x4c3c6e
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.004d77c0
add esp, 0x14
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x4c41ba
inc esi
cmp esi, 2
mov dword [esp + 0x38], esi
jl 0x4c3b11
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 0x4c39d1
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 2
mov dword [esp + 0x24], eax
jl 0x4c38d3
xor eax, eax
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x4c3d56
mov eax, dword [ecx + 0x70]
dec eax
jmp 0x4c3d58
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c3d05
mov ecx, dword [ebp + 0x74]
dec ecx
jmp 0x4c3d07
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.004d7590
mov edx, dword [esp + 0x40]
add esp, 0x14
mov dword [eax + 0x6c], 0
mov ecx, dword [0xa6a1ac]
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.004c29e0
add esp, 8
test eax, eax
jne 0x4c40e6
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 0x74]
dec ebp
cmp ebp, 1
jle 0x4c40e6
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 0x4c3f1b
test ebx, ebx
je 0x4c3db2
mov ecx, dword [edx + 0x74]
dec ecx
imul ecx, esi
jmp 0x4c3db4
xor ecx, ecx
lea eax, [esi - 1]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4c3f0d
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3ee8
fld dword [ebx + 4]
fsub dword [ecx - 0x2c]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3ee8
fld dword [ebx + 8]
fsub dword [ecx - 0x28]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3ee8
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3ee8
fld dword [edx + 4]
fsub dword [ecx]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3ee8
fld dword [edx + 8]
fsub dword [ecx + 4]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3ee8
fld dword [ecx - 0x30]
fsub dword [ecx - 4]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c4102
fld dword [ecx - 0x2c]
fsub dword [ecx]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c4102
fld dword [ecx - 0x28]
fsub dword [ecx + 4]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c4102
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 0x4c3ded
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 0x4c3d9c
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x38], eax
mov edx, dword [ecx + 0x74]
mov dword [esp + 0x28], edx
jmp 0x4c3f32
mov edx, dword [esp + 0x28]
cmp edx, 0x41
jge 0x4c40da
test eax, eax
je 0x4c3f48
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 1]
jmp 0x4c3f4a
xor ecx, ecx
lea eax, [edx - 1]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4c40c8
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c40ae
fld dword [esi + 4]
fsub dword [edx - 4]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c40ae
fld dword [esi + 8]
fsub dword [edx]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c40ae
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c40ae
fld dword [esi + 4]
fsub dword [ecx - 4]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c40ae
fld dword [esi + 8]
fsub dword [ecx]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c40ae
fld dword [edx - 8]
fsub dword [ecx - 8]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c416d
fld dword [edx - 4]
fsub dword [ecx - 4]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c416d
fld dword [edx]
fsub dword [ecx]
fabs
fcomp qword [0x5369e8]
fnstsw ax
test ah, 5
jp 0x4c416d
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 0x4c3fad
mov eax, dword [esp + 0x38]
inc eax
cmp eax, 2
mov dword [esp + 0x38], eax
jl 0x4c3f2e
sub ebp, 2
cmp ebp, 1
jg 0x4c3d8a
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 2
mov dword [esp + 0x24], eax
jl 0x4c3ce9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c4114
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x74]
dec ecx
jmp 0x4c4116
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.004d7590
mov ecx, dword [esp + 0x40]
add esp, 0x14
mov dword [eax + 0x6c], 0
mov edx, dword [0xa6a1ac]
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 0x4c417f
mov edx, dword [esp + 0x3c]
mov edx, dword [edx + 0x70]
dec edx
jmp 0x4c4181
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.004d77c0
add esp, 0x14
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x6c], 0
mov ecx, dword [0xa6a1ac]
pop edi
pop esi
pop ebp
mov dword [edx + ecx + 0xc], eax
mov eax, 1
pop ebx
add esp, 0x24
ret