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

Disassembly:
sub esp, 0x58
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov esi, ecx
mov eax, dword [esp + 0x68]
xor ecx, ecx
push edi
mov edx, dword [esi + 0x84]
mov ebx, dword [esi + 0x80]
cmp ebp, edx
setl cl
shl ecx, 1
xor edx, edx
cmp eax, ebx
mov ebx, dword [esi + 0x8c]
setl dl
or ecx, edx
xor edx, edx
shl ecx, 1
cmp ebp, ebx
mov ebx, dword [esi + 0x88]
setg dl
or ecx, edx
xor edx, edx
shl ecx, 1
cmp eax, ebx
setg dl
or ecx, edx
mov edi, ecx
mov ecx, dword [esi + 0x78]
cmp ecx, edi
mov dword [esp + 0x44], edi
jne 0x4c7e8d
test edi, edi
jne 0x4c8203
mov ecx, dword [esi + 0x7c]
push ebp
test ecx, ecx
push eax
mov ecx, esi
jne 0x4c7e7c
call fcn.004f7370
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x64], ebp
mov dword [esi + 0x60], eax
mov dword [esi + 0x7c], 1
jmp 0x4c81ff
call fcn.004f7450
mov dword [esi + 0x7c], 1
jmp 0x4c81ff
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x74]
sub eax, ecx
sub ebp, edx
mov dword [esp + 0x40], eax
lea ebx, [esp + 0x58]
fild dword [esp + 0x40]
mov dword [esp + 0x40], ebp
xor ebp, ebp
lea edi, [esp + 0x48]
mov dword [esp + 0x34], edx
fstp dword [esp + 0x14]
fild dword [esp + 0x40]
mov dword [esp + 0x3c], ecx
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fcomp dword [0x66419c]
fnstsw ax
test ah, 0x40
je 0x4c7f3b
cmp ecx, dword [esi + 0x80]
jle 0x4c7f31
mov dword [esp + 0x14], 0x8da24260
fild dword [esi + 0x88]
fstp dword [esp + 0x24]
fild dword [esi + 0x80]
fstp dword [esp + 0x40]
fild dword [esp + 0x3c]
fstp dword [esp + 0x38]
fld dword [esp + 0x24]
fsub dword [esp + 0x38]
fdiv dword [esp + 0x14]
fstp dword [esp + 0x18]
fld dword [esp + 0x10]
fcomp dword [0x66419c]
fnstsw ax
test ah, 0x40
je 0x4c7f68
cmp edx, dword [esi + 0x84]
jle 0x4c7f5e
mov dword [esp + 0x10], 0x8da24260
jmp 0x4c7f8b
mov dword [esp + 0x14], 0xda24260
jmp 0x4c7f4c
fld dword [esp + 0x14]
fcomp dword [0x66419c]
fnstsw ax
test ah, 0x41
jne 0x4c7ee2
fild dword [esi + 0x80]
fstp dword [esp + 0x24]
fild dword [esi + 0x88]
jmp 0x4c7ef2
mov dword [esp + 0x10], 0xda24260
jmp 0x4c7f79
fld dword [esp + 0x10]
fcomp dword [0x66419c]
fnstsw ax
test ah, 0x41
jne 0x4c7f8b
fild dword [esi + 0x84]
fstp dword [esp + 0x28]
fild dword [esi + 0x8c]
jmp 0x4c7f9b
fild dword [esi + 0x8c]
fstp dword [esp + 0x28]
fild dword [esi + 0x84]
fstp dword [esp + 0x3c]
fild dword [esp + 0x34]
fstp dword [esp + 0x30]
fld dword [esp + 0x28]
fsub dword [esp + 0x30]
fdiv dword [esp + 0x10]
fstp dword [esp + 0x1c]
fld dword [esp + 0x18]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x4c7fd4
mov ecx, dword [esp + 0x1c]
fld dword [esp + 0x18]
mov dword [esp + 0x20], ecx
jmp 0x4c7fe0
mov edx, dword [esp + 0x18]
fld dword [esp + 0x1c]
mov dword [esp + 0x20], edx
fcom dword [0x67a36c]
fnstsw ax
test ah, 0x41
je 0x4c81bb
fld dword [0x66419c]
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x4c8029
fld dword [esp + 0x24]
call fcn.0046572c
fld dword [esp + 0x28]
mov dword [esp + 0x48], eax
lea edi, [esp + 0x4c]
call fcn.0046572c
mov dword [esp + 0x58], eax
lea ebx, [esp + 0x5c]
mov ebp, 1
fld dword [esp + 0x20]
fcomp dword [0x67a36c]
fnstsw ax
test ah, 0x41
je 0x4c81bd
fld dword [esp + 0x40]
fsub dword [esp + 0x38]
fdiv dword [esp + 0x14]
fstp dword [esp + 0x2c]
fld dword [esp + 0x3c]
fsub dword [esp + 0x30]
fdiv dword [esp + 0x10]
fstp dword [esp + 0x34]
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x4c8073
fld dword [esp + 0x2c]
jmp 0x4c8077
fld dword [esp + 0x34]
fld dword [esp + 0x20]
fcomp dword [0x66419c]
fnstsw ax
test ah, 0x41
je 0x4c8099
fcom dword [0x66419c]
fnstsw ax
test ah, 0x41
jne 0x4c81bb
fld dword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x4c8178
fld dword [esp + 0x20]
fcomp dword [0x66419c]
fnstsw ax
test ah, 0x41
jne 0x4c810b
fld dword [esp + 0x18]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x4c80e6
fld dword [esp + 0x24]
call fcn.0046572c
fld dword [esp + 0x18]
fmul dword [esp + 0x10]
mov dword [edi], eax
add edi, 4
fadd dword [esp + 0x30]
jmp 0x4c8100
fld dword [esp + 0x1c]
fmul dword [esp + 0x14]
fadd dword [esp + 0x38]
call fcn.0046572c
fld dword [esp + 0x28]
mov dword [edi], eax
add edi, 4
call fcn.0046572c
mov dword [ebx], eax
add ebx, 4
inc ebp
fcomp dword [0x67a36c]
fnstsw ax
test ah, 1
je 0x4c8169
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x4c8148
fld dword [esp + 0x40]
call fcn.0046572c
fld dword [esp + 0x2c]
fmul dword [esp + 0x10]
mov dword [edi], eax
fadd dword [esp + 0x30]
call fcn.0046572c
mov dword [ebx], eax
inc ebp
jmp 0x4c81bd
fld dword [esp + 0x34]
fmul dword [esp + 0x14]
fadd dword [esp + 0x38]
call fcn.0046572c
fld dword [esp + 0x3c]
mov dword [edi], eax
call fcn.0046572c
mov dword [ebx], eax
inc ebp
jmp 0x4c81bd
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov dword [edi], eax
mov dword [ebx], ecx
inc ebp
jmp 0x4c81bd
fstp st(0)
fld dword [esp + 0x18]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x4c81a2
fld dword [esp + 0x24]
call fcn.0046572c
fld dword [esp + 0x3c]
mov dword [edi], eax
call fcn.0046572c
mov dword [ebx], eax
inc ebp
jmp 0x4c81bd
fld dword [esp + 0x40]
call fcn.0046572c
fld dword [esp + 0x28]
mov dword [edi], eax
call fcn.0046572c
mov dword [ebx], eax
inc ebp
jmp 0x4c81bd
fstp st(0)
test ebp, ebp
lea edi, [esp + 0x48]
lea ebx, [esp + 0x58]
je 0x4c81f7
mov eax, dword [esi + 0x7c]
mov ecx, dword [edi]
test eax, eax
mov eax, dword [ebx]
jne 0x4c81e5
push eax
push ecx
mov ecx, esi
add edi, 4
add ebx, 4
call fcn.004c7d40
jmp 0x4c81f4
push eax
push ecx
mov ecx, esi
add edi, 4
add ebx, 4
call fcn.004c7d90
dec ebp
jne 0x4c81c9
mov ebp, dword [esp + 0x70]
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x78], edi
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 8