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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x5ff004]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
push 0x50
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], edx
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x20], ebx
call fcn.00504370
mov esi, dword [ebp + 0x14]
xor edx, edx
mov eax, dword [ebx + 0x2b8]
add esp, 0xc
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi*2 - 2]
div ecx
mov edi, dword [ebx + 0x2b4]
imul eax, esi
mov ebx, edx
mov edx, dword [esp + 0x14]
push esi
mov dword [esp + 0x20], edi
add eax, dword [edx + 8]
mov ecx, dword [edx]
cdq
push edx
push eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [ecx]
push ecx
call eax
mov dl, byte [esp + 0x3c]
add esp, 0x14
mov cl, dl
and dl, 0xf
shr cl, 4
cmp dword [ebp + 0x18], 1
je 0x4dbf8d
mov al, 5
cmp al, cl
sbb al, al
not al
and cl, al
cmp dl, 0xc
jbe 0x4dbf8d
mov dl, 9
mov esi, dword [ebp + 0x10]
add esi, ebx
mov dword [esp + 0x24], esi
cmp ebx, esi
jge 0x4dc109
cmp dword [ebp + 0x18], 1
movzx ecx, cl
jne 0x4dc06d
fld dword [ecx*8 + 0x52eaa8]
fld dword [ecx*8 + 0x52eaac]
movzx edx, dl
mov word [esp + 0xc], dx
mov eax, ebx
test eax, eax
jns 0x4dbfca
add eax, 1
sar eax, 1
movzx eax, byte [esp + eax + 0x29]
test bl, 1
je 0x4dbfd9
shr eax, 4
shl eax, 0xc
mov cx, dx
sar ax, cl
cwde
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fild dword [esp + 0x1c]
fmul st(3)
faddp st(1)
fild dword [esp + 0x18]
fmul st(2)
faddp st(1)
call fcn.0051f100
cmp eax, 0x7fff
jle 0x4dc00e
mov eax, 0x7fff
jmp 0x4dc01a
cmp eax, 0xffff8000
jge 0x4dc01a
mov eax, 0xffff8000
mov ecx, dword [esp + 0x10]
inc ebx
mov esi, dword [ebp + 8]
mov dx, word [esp + 0xc]
mov word [ecx], ax
lea ecx, [ecx + esi*2]
mov dword [esp + 0x10], ecx
mov ecx, edi
mov edi, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
cmp ebx, dword [esp + 0x24]
jl 0x4dbfc1
mov eax, dword [esp + 0x14]
fstp st(0)
fstp st(0)
mov dword [eax + 0x2b4], edi
mov dword [eax + 0x2b8], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00502eb4
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx*8 + 0x52ea6c]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx*8 + 0x52ea70]
mov dword [esp + 0x20], eax
movzx eax, dl
mov dword [esp + 0x18], eax
lea ebx, [ebx]
mov eax, ebx
test eax, eax
jns 0x4dc099
add eax, 1
sar eax, 1
movzx ecx, byte [esp + eax + 0x29]
test bl, 1
je 0x4dc0a8
shr ecx, 4
mov edx, dword [esp + 0x20]
imul edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
imul eax, edi
shl ecx, 0xc
add edx, eax
movsx eax, cx
mov cl, byte [esp + 0x18]
sar edx, 6
sar eax, cl
add edx, eax
cmp edx, 0x7fff
jle 0x4dc0da
mov edx, 0x7fff
jmp 0x4dc0e7
cmp edx, 0xffff8000
jge 0x4dc0e7
mov edx, 0xffff8000
mov eax, dword [esp + 0x10]
inc ebx
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], edi
mov word [eax], dx
lea eax, [eax + esi*2]
mov dword [esp + 0x10], eax
mov eax, edi
mov edi, edx
cmp ebx, dword [esp + 0x24]
jl 0x4dc090
jmp 0x4dc10d
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x2b4], edi
pop edi
mov dword [ecx + 0x2b8], eax
mov ecx, dword [esp + 0x78]
pop esi
pop ebx
xor ecx, esp
call fcn.00502eb4
mov esp, ebp
pop ebp
ret