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

Disassembly:
sub esp, 0x24
mov ecx, dword [esp + 0x28]
mov eax, dword [0xa7b55c]
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 0x4c41a2
mov esi, dword [edi + 0x74]
dec esi
imul esi, dword [edi + 0x70]
jmp 0x4c41a4
xor esi, esi
push esi
push edi
mov dword [esp + 0x1c], esi
call fcn.004c3950
add esp, 8
test eax, eax
jne 0x4c44d3
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x70]
add eax, 0xfffffffe
test eax, eax
mov dword [esp + 0x18], eax
jle 0x4c44d3
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 0x4c432c
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c4202
mov eax, dword [ebp + 0x74]
dec eax
imul eax, ebx
jmp 0x4c4204
xor eax, eax
lea esi, [ebx - 1]
xor edx, edx
test esi, esi
jle 0x4c431a
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 [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c430e
fld dword [edi + 0x84]
fsub dword [ecx - 0x2c]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c430e
fld dword [edi + 0x88]
fsub dword [ecx - 0x28]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c430e
fld dword [edi + 0xd8]
fsub dword [ecx - 4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c430e
fld dword [edi + 0xdc]
fsub dword [ecx]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c430e
fld dword [edi + 0xe0]
fsub dword [ecx + 4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c430e
fld dword [ecx - 0x30]
fsub dword [ecx - 4]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c4502
fld dword [ecx - 0x2c]
fsub dword [ecx]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c4502
fld dword [ecx - 0x28]
fsub dword [ecx + 4]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c4502
inc edx
add ecx, 0x2c
cmp edx, esi
jl 0x4c421d
mov eax, dword [esp + 0x38]
inc eax
cmp eax, 2
mov dword [esp + 0x38], eax
jl 0x4c41e8
mov ecx, dword [ebp + 0x74]
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x28], 0x41
jge 0x4c44b1
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c4353
lea eax, [ebx - 1]
jmp 0x4c4355
xor eax, eax
mov edx, dword [esp + 0x28]
xor ebx, ebx
lea ebp, [edx - 1]
test ebp, ebp
jle 0x4c4497
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 [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c448a
fld dword [edi + 0x84]
fsub dword [ecx - 4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c448a
fld dword [edi + 0x88]
fsub dword [ecx]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c448a
fld dword [edi + 0xd8]
fsub dword [edx - 8]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c448a
fld dword [edi + 0xdc]
fsub dword [edx - 4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c448a
fld dword [edi + 0xe0]
fsub dword [edx]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c448a
fld dword [ecx - 8]
fsub dword [edx - 8]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c4544
fld dword [ecx - 4]
fsub dword [edx - 4]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c4544
fld dword [ecx]
fsub dword [edx]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c4544
inc ebx
add ecx, esi
add edx, esi
cmp ebx, ebp
jl 0x4c439b
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 0x4c433b
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 0x4c41e0
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
inc ebx
cmp ebx, 2
mov dword [esp + 0x24], ebx
jl 0x4c4194
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x4c4584
mov ebp, dword [esi + 0x70]
dec ebp
jmp 0x4c4586
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c4510
mov ecx, dword [ebp + 0x74]
dec ecx
jmp 0x4c4512
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.004d8600
jmp 0x4c5227
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c4556
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x70]
dec ecx
jmp 0x4c4558
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 0x4c521d
xor ebp, ebp
push ebp
push esi
mov dword [esp + 0x1c], ebp
call fcn.004c3a50
add esp, 8
test eax, eax
jne 0x4c4929
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 0x4c4929
mov eax, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 0x70]
mov dword [esp + 0x1c], eax
jmp 0x4c45d7
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x38], ecx
jmp 0x4c45d7
mov eax, dword [esp + 0x1c]
cmp eax, 0x41
jge 0x4c4754
test ecx, ecx
je 0x4c45f1
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x74]
dec ecx
imul ecx, eax
jmp 0x4c45f3
xor ecx, ecx
dec eax
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4c4742
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 [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4729
fld dword [edi + 4]
fsub dword [ecx - 0x2c]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4729
fld dword [edi + 8]
fsub dword [ecx - 0x28]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4729
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 [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4729
fld dword [edx + 4]
fsub dword [ecx]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4729
fld dword [edx + 8]
fsub dword [ecx + 4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4729
fld dword [ecx - 0x30]
fsub dword [ecx - 4]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c4960
fld dword [ecx - 0x2c]
fsub dword [ecx]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c4960
fld dword [ecx - 0x28]
fsub dword [ecx + 4]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c4960
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 0x4c462e
mov ecx, dword [esp + 0x38]
inc ecx
cmp ecx, 2
mov dword [esp + 0x38], ecx
jl 0x4c45d3
mov eax, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 0x74]
mov dword [esp + 0x28], eax
jmp 0x4c476b
mov eax, dword [esp + 0x28]
cmp eax, 0x41
jge 0x4c4916
test ecx, ecx
je 0x4c477f
mov ecx, dword [esp + 0x1c]
dec ecx
jmp 0x4c4781
xor ecx, ecx
dec eax
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4c48fc
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 [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c48e2
fld dword [ebp + 4]
fsub dword [edx - 4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c48e2
fld dword [ebp + 8]
fsub dword [edx]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c48e2
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 [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c48e2
fld dword [esi + 4]
fsub dword [ecx - 4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c48e2
fld dword [esi + 8]
fsub dword [ecx]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c48e2
fld dword [edx - 8]
fsub dword [ecx - 8]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c49ae
fld dword [edx - 4]
fsub dword [ecx - 4]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c49ae
fld dword [edx]
fsub dword [ecx]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c49ae
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 0x4c47e0
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 0x4c4767
mov eax, dword [esp + 0x30]
add ebx, 2
cmp ebx, eax
mov dword [esp + 0x20], ebx
jl 0x4c45c7
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 2
mov dword [esp + 0x24], eax
jl 0x4c44e9
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x4c49f2
mov ecx, dword [eax + 0x74]
dec ecx
imul ecx, dword [eax + 0x70]
jmp 0x4c49f4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c4972
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 0x74]
dec edx
jmp 0x4c4974
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.004d8600
jmp 0x4c5227
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c49c0
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + 0x70]
dec esi
jmp 0x4c49c2
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 0x4c5217
xor ecx, ecx
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004c3950
add esp, 8
test eax, eax
jne 0x4c4d41
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x70]
dec eax
cmp eax, 1
mov dword [esp + 0x20], eax
jle 0x4c4d41
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 0x4c4b7b
test ecx, ecx
je 0x4c4a64
mov eax, dword [ebp + 0x74]
dec eax
imul eax, ebx
jmp 0x4c4a66
xor eax, eax
lea esi, [ebx - 1]
xor edx, edx
test esi, esi
jle 0x4c4b6d
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 [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4b5d
fld dword [edi + 4]
fsub dword [ecx - 0x2c]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4b5d
fld dword [edi + 8]
fsub dword [ecx - 0x28]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4b5d
fld dword [edi - 0x58]
fsub dword [ecx - 4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4b5d
fld dword [edi - 0x54]
fsub dword [ecx]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4b5d
fld dword [edi - 0x50]
fsub dword [ecx + 4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4b5d
fld dword [ecx - 0x30]
fsub dword [ecx - 4]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c4d67
fld dword [ecx - 0x2c]
fsub dword [ecx]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c4d67
fld dword [ecx - 0x28]
fsub dword [ecx + 4]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c4d67
inc edx
add ecx, 0x2c
cmp edx, esi
jl 0x4c4a7f
mov ecx, dword [esp + 0x38]
inc ecx
cmp ecx, 2
mov dword [esp + 0x38], ecx
jl 0x4c4a4e
xor esi, esi
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x74]
cmp ecx, 0x41
jge 0x4c4d1f
test esi, esi
je 0x4c4b9f
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x70]
dec eax
jmp 0x4c4ba1
xor eax, eax
dec ecx
mov dword [esp + 0x18], 0
test ecx, ecx
mov dword [esp + 0x30], ecx
jle 0x4c4d11
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 [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4cb6
fld dword [edi + 4]
fsub dword [ecx - 4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4cb6
fld dword [edi + 8]
fsub dword [ecx]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4cb6
fld dword [edi - 0x58]
fsub dword [edx - 8]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4cb6
fld dword [edi - 0x54]
fsub dword [edx - 4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4cb6
fld dword [edi - 0x50]
fsub dword [edx]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4cb6
fld dword [ecx - 8]
fsub dword [edx - 8]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c4cd1
fld dword [ecx - 4]
fsub dword [edx - 4]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c4cd1
fld dword [ecx]
fsub dword [edx]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c4cd1
mov eax, dword [esp + 0x18]
add ecx, esi
inc eax
add edx, esi
cmp eax, ebp
mov dword [esp + 0x18], eax
jl 0x4c4be6
mov esi, dword [esp + 0x38]
jmp 0x4c4d11
mov esi, dword [esp + 0x38]
test esi, esi
je 0x4c4cdc
dec ebx
jmp 0x4c4cde
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.004d8830
add esp, 0x14
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x4c522a
inc esi
cmp esi, 2
mov dword [esp + 0x38], esi
jl 0x4c4b81
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 0x4c4a41
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 2
mov dword [esp + 0x24], eax
jl 0x4c4943
xor eax, eax
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x4c4dc6
mov eax, dword [ecx + 0x70]
dec eax
jmp 0x4c4dc8
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c4d75
mov ecx, dword [ebp + 0x74]
dec ecx
jmp 0x4c4d77
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.004d8600
mov edx, dword [esp + 0x40]
add esp, 0x14
mov dword [eax + 0x6c], 0
mov ecx, dword [0xa7b55c]
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.004c3a50
add esp, 8
test eax, eax
jne 0x4c5156
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 0x74]
dec ebp
cmp ebp, 1
jle 0x4c5156
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 0x4c4f8b
test ebx, ebx
je 0x4c4e22
mov ecx, dword [edx + 0x74]
dec ecx
imul ecx, esi
jmp 0x4c4e24
xor ecx, ecx
lea eax, [esi - 1]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4c4f7d
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 [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4f58
fld dword [ebx + 4]
fsub dword [ecx - 0x2c]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4f58
fld dword [ebx + 8]
fsub dword [ecx - 0x28]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4f58
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 [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4f58
fld dword [edx + 4]
fsub dword [ecx]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4f58
fld dword [edx + 8]
fsub dword [ecx + 4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4f58
fld dword [ecx - 0x30]
fsub dword [ecx - 4]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c5172
fld dword [ecx - 0x2c]
fsub dword [ecx]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c5172
fld dword [ecx - 0x28]
fsub dword [ecx + 4]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c5172
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 0x4c4e5d
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 0x4c4e0c
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x38], eax
mov edx, dword [ecx + 0x74]
mov dword [esp + 0x28], edx
jmp 0x4c4fa2
mov edx, dword [esp + 0x28]
cmp edx, 0x41
jge 0x4c514a
test eax, eax
je 0x4c4fb8
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 1]
jmp 0x4c4fba
xor ecx, ecx
lea eax, [edx - 1]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4c5138
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 [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c511e
fld dword [esi + 4]
fsub dword [edx - 4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c511e
fld dword [esi + 8]
fsub dword [edx]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c511e
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 [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c511e
fld dword [esi + 4]
fsub dword [ecx - 4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c511e
fld dword [esi + 8]
fsub dword [ecx]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c511e
fld dword [edx - 8]
fsub dword [ecx - 8]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c51dd
fld dword [edx - 4]
fsub dword [ecx - 4]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c51dd
fld dword [edx]
fsub dword [ecx]
fabs
fcomp qword [0x5389e8]
fnstsw ax
test ah, 5
jp 0x4c51dd
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 0x4c501d
mov eax, dword [esp + 0x38]
inc eax
cmp eax, 2
mov dword [esp + 0x38], eax
jl 0x4c4f9e
sub ebp, 2
cmp ebp, 1
jg 0x4c4dfa
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 2
mov dword [esp + 0x24], eax
jl 0x4c4d59
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c5184
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x74]
dec ecx
jmp 0x4c5186
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.004d8600
mov ecx, dword [esp + 0x40]
add esp, 0x14
mov dword [eax + 0x6c], 0
mov edx, dword [0xa7b55c]
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 0x4c51ef
mov edx, dword [esp + 0x3c]
mov edx, dword [edx + 0x70]
dec edx
jmp 0x4c51f1
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.004d8830
add esp, 0x14
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x6c], 0
mov ecx, dword [0xa7b55c]
pop edi
pop esi
pop ebp
mov dword [edx + ecx + 0xc], eax
mov eax, 1
pop ebx
add esp, 0x24
ret