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

Disassembly:
mov ecx, dword [esp + 0x10]
sub esp, 0x84
xor edx, edx
lea eax, [ecx - 3]
test eax, eax
sets dl
push ebx
push ebp
add ecx, 3
push esi
push edi
dec edx
and eax, edx
mov edx, dword [esp + 0xac]
dec edx
cmp ecx, edx
jle 0x49efbc
mov ecx, edx
mov edx, dword [esp + 0xa0]
xor ebx, ebx
lea esi, [edx - 3]
test esi, esi
sets bl
lea ebp, [ebx - 1]
mov ebx, dword [esp + 0xa8]
and ebp, esi
lea esi, [edx + 3]
dec ebx
mov dword [esp + 0x88], ebp
cmp esi, ebx
jle 0x49efee
mov dword [esp + 0x70], ebx
jmp 0x49eff4
mov ebx, esi
mov dword [esp + 0x70], esi
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov esi, eax
imul esi, dword [esp + 0xb0]
add dword [esp + 0x98], esi
mov esi, eax
imul esi, dword [esp + 0xb4]
add dword [esp + 0x9c], esi
cmp eax, ecx
jg 0x49f27b
mov esi, eax
sub esi, dword [esp + 0xa4]
sub ecx, eax
inc ecx
lea esi, [esi*4 + 0x5019c0]
mov dword [esp + 0x68], esi
mov dword [esp + 0x78], ecx
xor eax, eax
mov ecx, dword [esp + 0x68]
mov ecx, dword [ecx]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x2c], ecx
mov edi, ebp
cmp ebp, ebx
jg 0x49f250
mov ecx, ebx
sub ecx, ebp
inc ecx
cmp ecx, 2
jl 0x49f19d
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
lea esi, [eax + ebp]
sub ebp, edx
lea edx, [ebp*4 + 0x5019c4]
sub ecx, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x80], ecx
jmp 0x49f0d7
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x28]
mov eax, dword [eax - 4]
imul eax, dword [esp + 0x2c]
movzx ecx, byte [esi + ecx]
mov edx, ecx
imul edx, eax
add dword [esp + 0x54], edx
movzx edx, byte [esi]
mov ebx, edx
imul ebx, eax
add dword [esp + 0x4c], ebx
mov ebx, ecx
imul ebx, ecx
imul ebx, eax
add dword [esp + 0x44], ebx
add dword [esp + 0x60], eax
mov ebx, edx
imul edx, edx
imul ebx, ecx
imul edx, eax
add dword [esp + 0x34], edx
imul ebx, eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
imul eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x98]
movzx ecx, byte [ecx + edi + 1]
add dword [esp + 0x3c], ebx
mov edx, ecx
imul edx, eax
add dword [esp + 0x50], edx
movzx edx, byte [esi + 1]
mov ebx, edx
imul ebx, eax
add dword [esp + 0x48], ebx
add dword [esp + 0x58], eax
add dword [esp + 0x28], 8
mov ebx, ecx
imul ebx, ecx
imul ecx, edx
imul edx, edx
imul ebx, eax
imul ecx, eax
imul edx, eax
add dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x70]
add dword [esp + 0x38], ecx
add dword [esp + 0x30], edx
add edi, 2
lea eax, [ebx - 1]
add esi, 2
cmp edi, eax
jle 0x49f0d0
mov ebp, dword [esp + 0x88]
mov edx, dword [esp + 0xa0]
xor eax, eax
cmp edi, ebx
jg 0x49f208
mov ecx, dword [esp + 0x98]
movzx ecx, byte [edi + ecx]
mov eax, edi
sub eax, edx
mov eax, dword [eax*4 + 0x5019c0]
imul eax, dword [esp + 0x2c]
mov edx, ecx
imul edx, eax
add dword [esp + 0x14], edx
mov edx, dword [esp + 0x9c]
movzx edx, byte [edi + edx]
mov esi, edx
imul esi, eax
add dword [esp + 0x18], esi
mov esi, ecx
imul esi, ecx
imul esi, eax
add dword [esp + 0x1c], esi
add dword [esp + 0x10], eax
mov esi, edx
imul edx, edx
imul esi, ecx
imul edx, eax
add dword [esp + 0x20], edx
imul esi, eax
add dword [esp + 0x24], esi
mov edx, dword [esp + 0xa0]
xor eax, eax
mov ecx, dword [esp + 0x30]
add ecx, dword [esp + 0x34]
add dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x38]
add ecx, dword [esp + 0x3c]
add dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x40]
add ecx, dword [esp + 0x44]
add dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x48]
add ecx, dword [esp + 0x4c]
add dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x50]
add ecx, dword [esp + 0x54]
add dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x58]
add ecx, dword [esp + 0x60]
add dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xb0]
add dword [esp + 0x98], ecx
mov ecx, dword [esp + 0xb4]
add dword [esp + 0x68], 4
add dword [esp + 0x9c], ecx
dec dword [esp + 0x78]
jne 0x49f055
mov edx, dword [esp + 0x10]
fild dword [esp + 0x10]
test edx, edx
jns 0x49f28d
fadd qword [0x50a058]
fld1
mov eax, dword [esp + 0x14]
fdivrp st(1)
fst qword [esp + 0x58]
fild dword [esp + 0x14]
test eax, eax
jns 0x49f2a7
fadd qword [0x50a058]
mov ecx, dword [esp + 0x18]
fmul st(1)
fst qword [esp + 0x78]
fild dword [esp + 0x18]
test ecx, ecx
jns 0x49f2bf
fadd qword [0x50a058]
mov edx, dword [esp + 0x1c]
fmul st(2)
fst qword [esp + 0x70]
fld st(1)
fmulp st(2)
fxch st(1)
fst qword [esp + 0x60]
fild dword [esp + 0x1c]
test edx, edx
jns 0x49f2e1
fadd qword [0x50a058]
mov eax, dword [esp + 0x20]
fmul st(3)
fsubrp st(1)
fst qword [esp + 0x80]
fld st(1)
fmulp st(2)
fxch st(1)
fst qword [esp + 0x68]
fild dword [esp + 0x20]
test eax, eax
jns 0x49f308
fadd qword [0x50a058]
fmulp st(3)
fsubp st(2)
fxch st(1)
fst qword [esp + 0x88]
fldz
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x49f32d
fstp st(2)
fld st(1)
fst qword [esp + 0x80]
fxch st(2)
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x49f341
fstp st(1)
fst qword [esp + 0x88]
jmp 0x49f343
fstp st(0)
fmulp st(1)
call fcn.004d3e70
fld qword [esp + 0x78]
fld st(0)
mov ecx, dword [esp + 0x24]
fld qword [0x50a068]
fmul st(1), st(0)
fld qword [esp + 0x70]
fmul st(2), st(0)
fld qword [0x509308]
fadd st(3), st(0)
fld qword [esp + 0x68]
fadd qword [esp + 0x60]
faddp st(1)
fdivp st(3)
fld st(4)
fmulp st(2)
fld qword [0x509310]
fadd st(2), st(0)
fld qword [esp + 0x88]
fadd qword [esp + 0x80]
faddp st(1)
fdivp st(2)
fxch st(2)
fmulp st(1)
fild dword [esp + 0x24]
test ecx, ecx
jns 0x49f3a6
fadd qword [0x50a058]
fmul qword [esp + 0x58]
pop edi
fxch st(2)
pop esi
fmulp st(3)
pop ebp
fxch st(1)
pop ebx
fsubrp st(2)
fld qword [0x509318]
fadd st(2), st(0)
faddp st(3)
fxch st(1)
fdivrp st(2)
fmulp st(1)
add esp, 0x84
ret