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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x34], eax
test esi, esi
je 0x100085e8
mov eax, dword [esi]
mov dword [esp + 0x30], ecx
mov dword [esp], 0x50
call dword [eax + 0x68]
mov dword [ebx], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x60]
mov dword [esp], eax
call fcn.10028230
mov ecx, dword [esp + 0x30]
movzx eax, cx
lea edx, [eax + eax*2]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x1c]
lea edi, [eax + edx*8]
mov eax, dword [ebx]
xor edx, edx
mov dword [eax], esi
mov eax, dword [ebx]
mov dword [esp + 0x48], 0
mov dword [esp + 0x40], 1
mov dword [eax + 4], 0
mov eax, dword [ebx]
mov word [eax + 8], cx
mov eax, dword [ebx]
movzx ecx, byte [esp + 0x34]
mov byte [eax + 0xa], 0
mov eax, dword [ebx]
mov dword [eax + 0xc], 0
mov eax, dword [ebx]
mov dword [eax + 0x10], 4
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x3f800000
mov eax, dword [ebx]
mov word [eax + 0x18], dx
mov eax, dword [ebx]
mov byte [eax + 0x1a], cl
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x44], eax
movzx edx, byte [edi + 4]
mov eax, edx
shr dl, 5
shr al, 2
movzx edx, dl
and eax, 7
movzx ecx, al
mov word [esp + 0x2e], cx
mov word [esp + 0x76], cx
movzx ecx, byte [edi + 5]
shl ecx, 3
or ecx, edx
movzx edx, byte [edi + 6]
and edx, 0x7f
shl edx, 0xb
or edx, ecx
mov dword [esp + 0x78], edx
movzx ecx, byte [edi + 4]
mov dword [esp + 0x30], edx
and ecx, 3
jne 0x10008450
mov ecx, 1
mov edx, 8
movzx eax, al
mov word [esp + 0x74], cx
movzx ecx, byte [edi + 7]
shr cl, 7
shl edx, cl
imul eax, edx
mov ecx, edx
shl ecx, 0x10
sar eax, 3
movzx edx, ax
or ecx, edx
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x30]
imul eax, ecx
mov dword [esp + 0x7c], eax
xor eax, eax
mov word [esp + 0x84], ax
xor eax, eax
cmp word [esi + 0x30], 0
je 0x1000831f
mov eax, fcn.1000c580
mov edx, dword [ebx]
movzx ecx, word [esp + 0x2e]
mov dword [edx + 0x30], eax
mov eax, dword [ebx]
lea edx, [esp + 0x40]
mov dword [eax + 0x34], 0
mov eax, dword [ebx]
mov dword [eax + 0x38], 0
mov eax, dword [ebx]
mov dword [eax + 0x3c], 0x1000ca00
mov eax, dword [ebx]
mov dword [eax + 0x40], 0
mov eax, dword [ebx]
mov dword [eax + 0x44], 0
mov eax, dword [ebx]
mov dword [eax + 0x48], 0
mov eax, dword [ebx]
mov word [eax + 0x28], cx
mov dword [eax + 0x4c], eax
mov eax, dword [ebx]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0x40800000
lea edx, [eax + 0x30]
add eax, 0x2c
mov dword [esp + 0xc], 8
mov dword [esp + 0x14], edx
lea edx, [esp + 0x74]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x50]
mov dword [esp], eax
call fcn.10014800
cmp word [esi + 0x30], 0
mov ecx, dword [ebx]
je 0x100084c8
movzx eax, word [esp + 0x74]
cmp ax, 1
je 0x100085d0
cmp ax, 2
je 0x10008790
mov eax, dword [edi + 0xc]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebx]
mov eax, dword [esi]
mov ecx, dword [edx + 0x1c]
mov dword [esp + 0x34], edx
mov dword [esp], ecx
call dword [eax + 0x68]
mov edx, dword [esp + 0x34]
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov edx, dword [edi + 8]
mov dword [eax + 0x20], edx
mov dword [esp + 4], 0
mov eax, dword [ebx]
add eax, 0x30
mov dword [esp], eax
call fcn.1000c580
mov eax, dword [esi]
mov eax, dword [eax + 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp + 4], eax
lea eax, [esi + 4]
mov dword [esp], eax
call fcn.10021d50
mov eax, dword [esi]
mov eax, dword [eax + 0x60]
mov dword [esp], eax
call fcn.10028250
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cmp cl, 1
je 0x10008600
movzx edx, byte [edi + 6]
movzx eax, byte [edi + 7]
shr dl, 7
and eax, 0x7f
movzx edx, dl
add eax, eax
or eax, edx
cmp cl, 2
je 0x10008590
shr eax, 5
mov edx, 0x161
mov eax, dword [eax*4 + 0x10030344]
mov word [esp + 0x74], dx
mov dword [esp + 0x7c], eax
movzx eax, byte [edi + 7]
movzx edx, byte [edi + 6]
mov dword [esp + 0x82], 0x10
add eax, eax
shr dl, 7
and eax, 0x1e
or eax, edx
movzx eax, al
mov eax, dword [eax*4 + 0x10030300]
mov word [esp + 0x80], ax
jmp 0x10008311
mov dword [ecx + 0x24], 0
mov eax, dword [edi + 0xc]
mov dword [esp + 0x50], 0x40
mov dword [esp + 0x54], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x3c]
mov dword [esp], eax
call fcn.10028510
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], eax
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
shr dl, 4
movzx edx, dl
shl eax, 4
or eax, edx
movzx edx, byte [edi + 2]
shl edx, 0xc
or edx, eax
movzx eax, byte [edi + 3]
shl eax, 0x14
or eax, edx
cmp byte [esp + 0x34], 0
mov dword [esp + 0x60], eax
je 0x10008580
mov eax, dword [edi + 0x10]
mov dword [esp + 0x64], eax
movzx eax, byte [esp + 0x34]
mov edx, dword [edi + 0x14]
mov dword [esp + 0x6c], eax
cmp word [esp + 0x74], 0x161
mov eax, dword [ebx]
mov dword [esp + 0x68], edx
mov dword [esp + 0x70], 0
mov eax, dword [eax + 0x2c]
je 0x100087c0
lea edx, [esp + 0x50]
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.100190f0
jmp 0x1000840e
mov dword [esp + 0x64], 0
xor edx, edx
xor eax, eax
jmp 0x1000853a
movzx edx, word [esp + 0x2e]
add eax, 0x16
mov ecx, 2
mov dword [esp + 0x82], 0x40010
mov word [esp + 0x74], cx
imul edx, eax
lea eax, [eax + eax - 0xc]
mov word [esp + 0x86], ax
mov word [esp + 0x80], dx
jmp 0x10008311
movzx eax, word [esp + 0x80]
imul eax, dword [esp + 0x78]
jmp 0x100083d6
mov dword [ebx], 0
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esi + 0x24]
mov ecx, dword [esp + 0x28]
lea ecx, [edx + ecx*8]
mov edx, 0x166
mov dword [esp + 0x30], ecx
mov ecx, 0x10
mov word [esp + 0x82], cx
mov word [esp + 0x74], dx
movzx edx, byte [edi + 7]
and edx, 0x7f
shr edx, 4
mov edx, dword [edx*4 + 0x10030344]
mov dword [esp + 0x7c], edx
movzx edx, byte [edi + 7]
movzx ecx, byte [edi + 6]
add edx, edx
shr cl, 7
and edx, 0x1e
or edx, ecx
movzx edx, dl
mov edx, dword [edx*4 + 0x10030300]
mov word [esp + 0x80], dx
mov edx, 0x22
mov word [esp + 0x84], dx
movzx edx, al
lea eax, [edx + 1]
sar eax, 1
mov word [esp + 0x86], ax
xor eax, eax
cmp word [esp + 0x2e], 1
jbe 0x10008693
mov ecx, 0x20
mov eax, 0xffffffff
sub ecx, edx
shr eax, cl
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x88], eax
pxor xmm0, xmm0
pxor xmm1, xmm1
movsd xmm2, qword [0x10030368]
movsd xmm3, qword [0x10030378]
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov edx, dword [eax + edx*4 - 4]
mov dword [esp + 0x8c], edx
mov eax, dword [edi + 0xc]
add eax, 0x80000000
cvtsi2sd xmm0, eax
mov eax, dword [ecx]
mov dword [esp + 0x24], eax
add eax, 0x80000000
addsd xmm0, xmm2
cvtsi2sd xmm1, eax
addsd xmm1, xmm2
movsd xmm2, qword [0x10030388]
divsd xmm0, xmm1
mulsd xmm0, qword [0x10030370]
movapd xmm1, xmm0
andpd xmm1, xmm2
ucomisd xmm3, xmm1
jbe 0x10008738
addsd xmm1, xmm3
andnpd xmm2, xmm0
movsd xmm4, qword [0x10030380]
subsd xmm1, xmm3
orpd xmm1, xmm2
cmpnlesd xmm0, xmm1
andpd xmm0, xmm4
addsd xmm1, xmm0
movapd xmm0, xmm1
orpd xmm0, xmm2
cvttsd2si eax, xmm0
mov dword [esp + 0xa0], edx
mov dword [esp + 0x9c], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], edx
movzx eax, ax
shl eax, 0xb
mov dword [esp + 0x90], eax
mov eax, 0x400
mov word [esp + 0xa4], ax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov word [esp + 0xa6], ax
jmp 0x10008311
movzx eax, word [esp + 0x86]
mov edx, eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x34], edx
xor edx, edx
div dword [esp + 0x34]
movzx edx, word [esp + 0x80]
imul eax, edx
jmp 0x100083d6
mov edx, dword [esi + 0x24]
mov edi, dword [esp + 0x28]
lea edx, [edx + edi*8]
mov ecx, dword [edx + 4]
mov dword [esp + 0x38], ecx
mov edx, dword [edx]
mov dword [esp], eax
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x38]
mov dword [esp + 8], edx
lea edx, [esp + 0x50]
mov dword [esp + 4], edx
call fcn.100190f0
jmp 0x1000840e