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

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
mov ecx, dword [0xa7b558]
cmp eax, ecx
mov dword [esp + 0x1c], eax
jge 0x4c40ff
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
shl eax, 4
mov dword [esp + 0x30], eax
mov ecx, dword [0xa7b55c]
mov esi, dword [eax + ecx + 0xc]
cmp dword [esi], 2
jne 0x4c40d9
cmp dword [esi + 0x68], 2
je 0x4c40d9
fld dword [edi + 0x64]
fcomp dword [esi + 0x64]
fnstsw ax
test ah, 0x44
jp 0x4c40d9
fld dword [edi + 0x58]
fcomp dword [esi + 0x58]
fnstsw ax
test ah, 0x44
jp 0x4c40d9
fld dword [edi + 0x5c]
fcomp dword [esi + 0x5c]
fnstsw ax
test ah, 0x44
jp 0x4c40d9
fld dword [edi + 0x60]
fcomp dword [esi + 0x60]
fnstsw ax
test ah, 0x44
jp 0x4c40d9
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c3be5
mov ebp, dword [edi + 0x74]
dec ebp
imul ebp, dword [edi + 0x70]
jmp 0x4c3be7
xor ebp, ebp
push ebp
push edi
call fcn.004c3950
add esp, 8
test eax, eax
jne 0x4c3e45
mov edx, dword [edi + 0x70]
mov dword [esp + 0x10], 1
dec edx
cmp edx, 1
jle 0x4c3e45
inc ebp
mov dword [esp + 0x28], ebp
lea eax, [ebp + ebp*4]
lea ecx, [ebp + eax*2]
lea edx, [edi + ecx*4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4c3c3c
mov ebx, dword [esi + 0x74]
dec ebx
imul ebx, dword [esi + 0x70]
jmp 0x4c3c3e
xor ebx, ebx
push ebx
push esi
mov dword [esp + 0x1c], ebx
call fcn.004c3950
add esp, 8
test eax, eax
jne 0x4c3d16
mov eax, dword [esi + 0x70]
mov ecx, 1
dec eax
cmp eax, ecx
jle 0x4c3d16
lea edx, [ebx + ebx*4]
lea eax, [ebx + edx*2]
lea edx, [esi + eax*4 + 0xb4]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
fld dword [eax + 0x80]
fsub dword [edx - 8]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c3cfe
lea eax, [ebp + ebp*4 + 0xf]
lea edx, [ebp + eax*2 + 3]
lea eax, [ecx + ebx + 3]
fld dword [edi + edx*4]
lea ebx, [eax + eax*4]
lea eax, [eax + ebx*2]
fsub dword [esi + eax*4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c3cfa
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
fld dword [edx + 0x88]
fsub dword [eax]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c3cfa
mov edx, dword [edi + 0x78]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x78]
mov dword [esp + 0x20], 1
mov edx, dword [edx + ebx*4]
mov dword [eax + ecx*4], edx
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc ecx
add eax, 0x2c
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x70]
dec eax
cmp ecx, eax
jl 0x4c3c76
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x4c3c2a
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4c3d3e
mov eax, dword [esi + 0x70]
dec eax
jmp 0x4c3d40
xor eax, eax
push eax
push esi
mov dword [esp + 0x1c], eax
call fcn.004c3a50
add esp, 8
test eax, eax
jne 0x4c3e0e
mov ecx, dword [esi + 0x74]
mov edx, 1
dec ecx
cmp ecx, edx
jle 0x4c3e0e
mov eax, dword [esi + 0x70]
mov ecx, dword [esp + 0x14]
imul eax, edx
add ecx, eax
lea eax, [ecx + ecx*4]
lea eax, [ecx + eax*2]
lea ebx, [esi + eax*4]
mov eax, dword [esp + 0x1c]
fld dword [eax + 0x80]
fsub dword [ebx + 0x80]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c3e01
lea eax, [ebp + ebp*4 + 0xf]
lea eax, [ebp + eax*2 + 3]
lea ebp, [ecx + ecx*4 + 0xf]
fld dword [edi + eax*4]
lea ecx, [ecx + ebp*2 + 3]
mov ebp, dword [esp + 0x28]
fsub dword [esi + ecx*4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c3e01
mov eax, dword [esp + 0x1c]
fld dword [eax + 0x88]
fsub dword [ebx + 0x88]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c3e01
mov ecx, dword [edi + 0x78]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x7c]
mov dword [esp + 0x20], 1
mov ecx, dword [ecx + ebx*4]
mov dword [eax + edx*4], ecx
mov eax, dword [esi + 0x74]
inc edx
dec eax
cmp edx, eax
jl 0x4c3d67
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x4c3d30
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
add ecx, 0x2c
inc eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x70]
inc ebp
dec ecx
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ebp
jl 0x4c3c22
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 2
mov dword [esp + 0x18], eax
jl 0x4c3bd3
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c3e6d
mov eax, dword [edi + 0x70]
dec eax
jmp 0x4c3e6f
xor eax, eax
push eax
push edi
mov dword [esp + 0x30], eax
call fcn.004c3a50
add esp, 8
test eax, eax
jne 0x4c40aa
mov edx, dword [edi + 0x74]
mov dword [esp + 0x10], 1
dec edx
cmp edx, 1
jle 0x4c40aa
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4c3eb4
mov ebx, dword [esi + 0x74]
dec ebx
imul ebx, dword [esi + 0x70]
jmp 0x4c3eb6
xor ebx, ebx
push ebx
push esi
call fcn.004c3950
add esp, 8
test eax, eax
jne 0x4c3f76
mov eax, dword [esi + 0x70]
mov ebp, 1
dec eax
cmp eax, ebp
jle 0x4c3f76
lea ecx, [ebx + ebx*4 + 0x14]
lea edx, [ebx + ecx*2 + 4]
lea edx, [esi + edx*4]
mov eax, dword [edi + 0x70]
mov ecx, dword [esp + 0x28]
imul eax, dword [esp + 0x10]
add ecx, eax
lea eax, [ecx + ecx*4]
lea eax, [ecx + eax*2]
fld dword [edi + eax*4 + 0x80]
fsub dword [edx - 4]
lea ebx, [edi + eax*4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c3f66
lea eax, [ecx + ecx*4 + 0xf]
lea ecx, [ecx + eax*2 + 3]
fld dword [edi + ecx*4]
fsub dword [edx]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c3f66
fld dword [ebx + 0x88]
fsub dword [edx + 4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c3f66
mov eax, dword [edi + 0x7c]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x20], 1
mov eax, dword [eax + ebx*4]
mov dword [ecx + ebp*4], eax
mov ecx, dword [esi + 0x70]
inc ebp
add edx, 0x2c
dec ecx
cmp ebp, ecx
jl 0x4c3ee4
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x4c3ea2
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4c3f9e
mov eax, dword [esi + 0x70]
dec eax
jmp 0x4c3fa0
xor eax, eax
push eax
push esi
mov dword [esp + 0x1c], eax
call fcn.004c3a50
add esp, 8
test eax, eax
jne 0x4c4083
mov edx, dword [esi + 0x74]
mov ebx, 1
dec edx
cmp edx, ebx
jle 0x4c4083
mov eax, dword [edi + 0x70]
mov ecx, dword [esp + 0x28]
imul eax, dword [esp + 0x10]
add ecx, eax
lea edx, [ecx + ecx*4]
lea eax, [ecx + edx*2]
mov edx, dword [esi + 0x70]
imul edx, ebx
fld dword [edi + eax*4 + 0x80]
lea ebp, [edi + eax*4]
mov eax, dword [esp + 0x14]
add edx, eax
lea eax, [edx + edx*4]
lea eax, [edx + eax*2]
fsub dword [esi + eax*4 + 0x80]
lea eax, [esi + eax*4]
mov dword [esp + 0x24], eax
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4076
lea eax, [ecx + ecx*4 + 0xf]
lea ecx, [ecx + eax*2 + 3]
lea eax, [edx + edx*4 + 0xf]
fld dword [edi + ecx*4]
lea edx, [edx + eax*2 + 3]
fsub dword [esi + edx*4]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4076
mov eax, dword [esp + 0x24]
fld dword [ebp + 0x88]
fsub dword [eax + 0x88]
fabs
fcomp qword [0x537990]
fnstsw ax
and eax, 0x4100
je 0x4c4076
mov ecx, dword [edi + 0x7c]
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x7c]
mov dword [esp + 0x20], 1
mov ecx, dword [ecx + eax*4]
mov dword [edx + ebx*4], ecx
mov edx, dword [esi + 0x74]
inc ebx
dec edx
cmp ebx, edx
jl 0x4c3fc7
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x4c3f90
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x74]
inc eax
dec ecx
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4c3e9a
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 2
mov dword [esp + 0x18], eax
jl 0x4c3e5f
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4c40d9
mov edx, dword [esp + 0x38]
push esi
push edx
mov dword [esi + 0x68], 2
call fcn.004c3b40
add esp, 8
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov edx, dword [0xa7b558]
inc ecx
add eax, 0x10
cmp ecx, edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
jl 0x4c3b68
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret