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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb0]
push edi
mov edi, dword [esp + 0x84]
sub esi, edi
mov eax, esi
shl eax, 0x10
cdq
push edx
push eax
push 1
push 0
call fcn.007205e0
fld dword [esp + 0xbc]
mov dword [esp + 0x1c], eax
fsub dword [esp + 0x8c]
mov dword [esp + 0x14], 0
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul qword [0x7b17c0]
or ah, 0xc
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp qword [esp + 0x64]
mov eax, dword [esp + 0x64]
cdq
mov ebx, eax
fldcw word [esp + 0x10]
mov ebp, edx
push ebp
push ebx
fld dword [esp + 0xb0]
fsub dword [esp + 0x90]
fnstcw word [esp + 0xa8]
fmul qword [0x7b17c0]
movzx eax, word [esp + 0xa8]
or ah, 0xc
mov dword [esp + 0x2c], eax
fldcw word [esp + 0x2c]
fistp qword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
cdq
shld edx, eax, 0x10
fldcw word [esp + 0xa8]
shl eax, 0x10
push edx
push eax
call fcn.007205e0
mov dword [esp + 0x20], eax
fld dword [esp + 0xb8]
push ebp
fsub dword [esp + 0x9c]
push ebx
fnstcw word [esp + 0xa8]
fmul qword [0x7b17c0]
movzx eax, word [esp + 0xa8]
or ah, 0xc
mov dword [esp + 0x2c], eax
fldcw word [esp + 0x2c]
fistp qword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
cdq
shld edx, eax, 0x10
fldcw word [esp + 0xa8]
shl eax, 0x10
push edx
push eax
call fcn.007205e0
mov ecx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x80]
push edi
mov ebx, eax
mov eax, dword [ecx]
push ebp
call dword [eax + 0x44]
fld dword [esp + 0x88]
mov dword [esp + 0x10], eax
fmul qword [0x7b17c0]
fnstcw word [esp + 0xa0]
movzx eax, word [esp + 0xa0]
or ah, 0xc
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp qword [esp + 0x64]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0xb0]
fldcw word [esp + 0xa0]
sub ecx, ebp
shl ecx, 0x10
fld dword [esp + 0x98]
fmul qword [0x7b17c0]
fnstcw word [esp + 0xa0]
movzx eax, word [esp + 0xa0]
or ah, 0xc
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp qword [esp + 0x64]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x30], edx
fldcw word [esp + 0xa0]
fld dword [esp + 0xbc]
fmul qword [0x7b17c0]
fnstcw word [esp + 0xa0]
movzx eax, word [esp + 0xa0]
or ah, 0xc
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp qword [esp + 0x64]
mov ebp, dword [esp + 0x64]
fldcw word [esp + 0xa0]
fld dword [esp + 0x8c]
fmul qword [0x7b17c0]
fnstcw word [esp + 0xa0]
movzx eax, word [esp + 0xa0]
or ah, 0xc
cmp edi, dword [esp + 0xb4]
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp qword [esp + 0x64]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], eax
fldcw word [esp + 0xa0]
jg 0x502b58
cdq
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
mov eax, ebp
cdq
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], edx
cdq
mov dword [esp + 0x54], eax
mov eax, ebx
mov dword [esp + 0x58], edx
cdq
mov dword [esp + 0x5c], eax
mov eax, ecx
mov dword [esp + 0x60], edx
cdq
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x1c]
neg eax
mov ebx, 0x10000
add esi, 1
mov dword [esp + 0x68], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
jmp 0x502930
mov eax, dword [esp + 0x10]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x14]
push 0
cdq
push 0x18c0000
push edx
push eax
call fcn.00720270
mov cl, 0x10
call fcn.007205b0
mov edi, eax
push 0
mov eax, ebx
cdq
push 0xc60000
push edx
push eax
call fcn.00720270
mov cl, 0x10
call fcn.007205b0
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
mov ebx, eax
mov eax, edi
cdq
push ecx
push edx
push eax
call fcn.00720270
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
mov esi, eax
mov ebp, edx
mov eax, ebx
cdq
push ecx
push edx
push eax
call fcn.00720270
add esi, eax
adc ebp, edx
lea eax, [ebx + edi]
cdq
push edx
push eax
push ebp
push esi
call fcn.007205e0
mov ecx, dword [esp + 0x78]
mov ebx, eax
mov ebp, eax
sub eax, dword [esp + 0x28]
sar ebx, 0x10
imul ebx, dword [ecx + 0x14]
add ebx, dword [ecx + 8]
cdq
push edx
mov esi, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x5c]
push esi
push edx
sar ebp, 0xb
push eax
and ebp, 0x1f
call fcn.00720270
mov cl, 0x10
call fcn.007205b0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x60]
push ecx
push esi
mov edi, eax
mov eax, dword [esp + 0x64]
add edi, dword [esp + 0x34]
push edx
push eax
call fcn.00720270
mov cl, 0x10
call fcn.007205b0
mov ecx, dword [esp + 0x68]
sub eax, edi
add eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x68]
cdq
shld edx, eax, 0x10
push ecx
shl eax, 0x10
push edx
push eax
call fcn.007205e0
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x80]
cmp edx, ecx
mov dword [esp + 0x3c], eax
mov eax, edi
mov dword [esp + 0xa0], eax
jg 0x502b2e
sub ecx, edx
add ecx, 1
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x78]
mov edi, eax
sar eax, 0x10
movzx edx, word [ebx + eax*2]
lea ecx, [ebx + eax*2]
movzx eax, word [ecx + 2]
add ecx, 2
add ecx, dword [esi + 0x14]
sar edi, 0xb
movzx esi, word [ecx]
mov dword [esp + 0x38], esi
movzx esi, word [ecx - 2]
mov ecx, edx
shl ecx, 0x10
or ecx, edx
and ecx, 0x7e0f81f
mov edx, eax
shl edx, 0x10
or edx, eax
mov eax, dword [esp + 0x38]
and edx, 0x7e0f81f
sub edx, ecx
shl ecx, 5
and edi, 0x1f
imul edx, edi
add edx, ecx
mov ecx, eax
shl ecx, 0x10
or ecx, eax
and ecx, 0x7e0f81f
mov dword [esp + 0x34], esi
shl esi, 0x10
or esi, dword [esp + 0x34]
mov eax, dword [esp + 0xb0]
and esi, 0x7e0f81f
sub ecx, esi
imul ecx, edi
shr edx, 5
shl esi, 5
add ecx, esi
shr ecx, 5
and edx, 0x7e0f81f
and ecx, 0x7e0f81f
sub ecx, edx
imul ecx, ebp
shl edx, 5
add ecx, edx
shr ecx, 5
and ecx, 0x7e0f81f
mov edx, ecx
shr edx, 0x10
or edx, ecx
mov word [eax], dx
add eax, 2
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xa0]
add eax, dword [esp + 0x3c]
sub dword [esp + 0x18], 1
mov dword [esp + 0xa0], eax
jne 0x502a56
mov eax, dword [esp + 0x7c]
mov ebx, dword [esp + 0x20]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x1c]
add ebx, dword [esp + 0x40]
add dword [esp + 0x10], ecx
add dword [esp + 0x14], edx
sub dword [esp + 0x24], 1
mov dword [esp + 0x20], ebx
jne 0x502930
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret