Function at 0x4d45e0
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 0x4d467d
test edi, edi
jne 0x4d49f3
mov ecx, dword [esi + 0x7c]
push ebp
test ecx, ecx
push eax
mov ecx, esi
jne 0x4d466c
call fcn.00505030
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x64], ebp
mov dword [esi + 0x60], eax
mov dword [esi + 0x7c], 1
jmp 0x4d49ef
call fcn.00505110
mov dword [esi + 0x7c], 1
jmp 0x4d49ef
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 [0x675254]
fnstsw ax
test ah, 0x40
je 0x4d472b
cmp ecx, dword [esi + 0x80]
jle 0x4d4721
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 [0x675254]
fnstsw ax
test ah, 0x40
je 0x4d4758
cmp edx, dword [esi + 0x84]
jle 0x4d474e
mov dword [esp + 0x10], 0x8da24260
jmp 0x4d477b
mov dword [esp + 0x14], 0xda24260
jmp 0x4d473c
fld dword [esp + 0x14]
fcomp dword [0x675254]
fnstsw ax
test ah, 0x41
jne 0x4d46d2
fild dword [esi + 0x80]
fstp dword [esp + 0x24]
fild dword [esi + 0x88]
jmp 0x4d46e2
mov dword [esp + 0x10], 0xda24260
jmp 0x4d4769
fld dword [esp + 0x10]
fcomp dword [0x675254]
fnstsw ax
test ah, 0x41
jne 0x4d477b
fild dword [esi + 0x84]
fstp dword [esp + 0x28]
fild dword [esi + 0x8c]
jmp 0x4d478b
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 0x4d47c4
mov ecx, dword [esp + 0x1c]
fld dword [esp + 0x18]
mov dword [esp + 0x20], ecx
jmp 0x4d47d0
mov edx, dword [esp + 0x18]
fld dword [esp + 0x1c]
mov dword [esp + 0x20], edx
fcom dword [0x68b7d4]
fnstsw ax
test ah, 0x41
je 0x4d49ab
fld dword [0x675254]
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x4d4819
fld dword [esp + 0x24]
call fcn.004665dc
fld dword [esp + 0x28]
mov dword [esp + 0x48], eax
lea edi, [esp + 0x4c]
call fcn.004665dc
mov dword [esp + 0x58], eax
lea ebx, [esp + 0x5c]
mov ebp, 1
fld dword [esp + 0x20]
fcomp dword [0x68b7d4]
fnstsw ax
test ah, 0x41
je 0x4d49ad
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 0x4d4863
fld dword [esp + 0x2c]
jmp 0x4d4867
fld dword [esp + 0x34]
fld dword [esp + 0x20]
fcomp dword [0x675254]
fnstsw ax
test ah, 0x41
je 0x4d4889
fcom dword [0x675254]
fnstsw ax
test ah, 0x41
jne 0x4d49ab
fld dword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x4d4968
fld dword [esp + 0x20]
fcomp dword [0x675254]
fnstsw ax
test ah, 0x41
jne 0x4d48fb
fld dword [esp + 0x18]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x4d48d6
fld dword [esp + 0x24]
call fcn.004665dc
fld dword [esp + 0x18]
fmul dword [esp + 0x10]
mov dword [edi], eax
add edi, 4
fadd dword [esp + 0x30]
jmp 0x4d48f0
fld dword [esp + 0x1c]
fmul dword [esp + 0x14]
fadd dword [esp + 0x38]
call fcn.004665dc
fld dword [esp + 0x28]
mov dword [edi], eax
add edi, 4
call fcn.004665dc
mov dword [ebx], eax
add ebx, 4
inc ebp
fcomp dword [0x68b7d4]
fnstsw ax
test ah, 1
je 0x4d4959
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x4d4938
fld dword [esp + 0x40]
call fcn.004665dc
fld dword [esp + 0x2c]
fmul dword [esp + 0x10]
mov dword [edi], eax
fadd dword [esp + 0x30]
call fcn.004665dc
mov dword [ebx], eax
inc ebp
jmp 0x4d49ad
fld dword [esp + 0x34]
fmul dword [esp + 0x14]
fadd dword [esp + 0x38]
call fcn.004665dc
fld dword [esp + 0x3c]
mov dword [edi], eax
call fcn.004665dc
mov dword [ebx], eax
inc ebp
jmp 0x4d49ad
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov dword [edi], eax
mov dword [ebx], ecx
inc ebp
jmp 0x4d49ad
fstp st(0)
fld dword [esp + 0x18]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x4d4992
fld dword [esp + 0x24]
call fcn.004665dc
fld dword [esp + 0x3c]
mov dword [edi], eax
call fcn.004665dc
mov dword [ebx], eax
inc ebp
jmp 0x4d49ad
fld dword [esp + 0x40]
call fcn.004665dc
fld dword [esp + 0x28]
mov dword [edi], eax
call fcn.004665dc
mov dword [ebx], eax
inc ebp
jmp 0x4d49ad
fstp st(0)
test ebp, ebp
lea edi, [esp + 0x48]
lea ebx, [esp + 0x58]
je 0x4d49e7
mov eax, dword [esi + 0x7c]
mov ecx, dword [edi]
test eax, eax
mov eax, dword [ebx]
jne 0x4d49d5
push eax
push ecx
mov ecx, esi
add edi, 4
add ebx, 4
call fcn.004d4530
jmp 0x4d49e4
push eax
push ecx
mov ecx, esi
add edi, 4
add ebx, 4
call fcn.004d4580
dec ebp
jne 0x4d49b9
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