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

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
push 0x34
mov ebx, ecx
mov dword [esp + 0x10], 0
call fcn.1007bfdd
mov edi, dword [esp + 0x30]
add esp, 4
mov esi, eax
cmp byte [edi + 0x79], 0
je 0x100827d0
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x100827d0
cmp byte [edi + 0x78], 0
je 0x100827be
push ecx
call fcn.1007bfd8
add esp, 4
jmp 0x100827c9
push 0x34
push ecx
call fcn.1007bfc1
add esp, 8
mov dword [edi + 0x74], 0
push 0x34
push 0
push esi
mov word [edi + 0x78], 0x100
mov dword [edi + 0x74], esi
call fcn.1008b230
mov eax, dword [ebx]
xorps xmm0, xmm0
movups xmmword [esp + 0x1c], xmm0
add esp, 0xc
movq qword [esp + 0x20], xmm0
mov dword [eax + 0x10], 0
mov ecx, dword [ebx]
mov eax, dword [edi + 0x50]
cdq
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [ebx]
lea edx, [esp + 0xc]
push edx
push 0x34
push dword [edi + 0x74]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x74]
mov eax, dword [eax + 8]
sub eax, dword [esp + 0xc]
je 0x10082853
mov eax, dword [ebx]
mov dword [eax + 0x10], 1
mov eax, dword [edi + 0x74]
mov ecx, dword [eax + 8]
mov eax, dword [ebx]
sub ecx, dword [esp + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [ebx]
lea edx, [esp + 0xc]
push edx
push 0x18
lea edx, [esp + 0x18]
mov eax, dword [ecx]
push edx
call dword [eax + 0xc]
mov eax, dword [edi + 0x74]
mov eax, dword [eax + 0xc]
sub eax, dword [esp + 0xc]
je 0x10082898
mov eax, dword [ebx]
mov dword [eax + 0x10], 1
mov eax, dword [edi + 0x74]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebx]
sub ecx, dword [esp + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x14]
movzx ecx, word [esp + 0x22]
push ebp
mov ebp, dword [edi + 0x74]
mov esi, dword [esp + 0x20]
movzx eax, word [ebp + 4]
mov dword [edi], eax
movzx eax, word [esp + 0x14]
mov dword [edi + 4], eax
movzx eax, word [esp + 0x16]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x1c], eax
movzx eax, word [esp + 0x24]
mov dword [edi + 0x20], eax
cdq
and edx, 7
mov dword [edi + 0xc], esi
add edx, eax
mov dword [edi + 0x18], ecx
sar edx, 3
mov dword [edi + 0x24], edx
imul edx, ecx
mov dword [edi + 0x28], edx
test esi, esi
jne 0x100828f8
xor ecx, ecx
jmp 0x10082904
lea ecx, [esi - 1]
imul ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x1c]
test byte [esp + 0x16], 0x20
mov esi, 0x2c
mov dword [edi + 0x40], ecx
jne 0x10082916
mov esi, dword [ebp + 0x14]
imul edx, ecx
mov dword [edi + 0x2c], esi
mov eax, dword [ebp + 0x20]
mov dword [edi + 0x34], eax
add eax, edx
mov dword [edi + 0x30], edx
add eax, esi
mov dword [edi + 0x38], eax
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
movd xmm1, dword [edi + 0x40]
mov esi, eax
mov edx, dword [edi + 0x1c]
cvtdq2pd xmm1, xmm1
mov dword [edi + 0x3c], esi
pop ebp
movd xmm0, edx
mulsd xmm1, qword [0x100ab9e0]
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si ecx, xmm1
mov dword [edi + 0x44], ecx
test ecx, ecx
jg 0x1008296a
xor eax, eax
jmp 0x10082998
movd xmm1, esi
mov eax, esi
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
movd xmm0, ecx
addsd xmm1, qword [eax*8 + 0x100ac730]
cvtdq2pd xmm0, xmm0
mulsd xmm1, qword [0x100ac728]
divsd xmm1, xmm0
cvttsd2si eax, xmm1
mov ecx, dword [edi + 0x28]
imul ecx, edx
mov dword [edi + 0x48], eax
mov eax, 0x10624dd3
shr esi, 2
shl ecx, 3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x4c], eax
mov eax, dword [edi + 0x74]
mov eax, dword [eax + 0x10]
shr eax, 2
mov dword [edi + 0x54], eax
cmp eax, esi
ja 0x10082aa0
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1007c3b0
add esp, 4
mov esi, eax
cmp byte [edi + 0x61], 0
je 0x10082a1a
mov ecx, dword [edi + 0x5c]
test ecx, ecx
je 0x10082a1a
cmp byte [edi + 0x60], 0
je 0x10082a08
push ecx
call fcn.1007bfd8
add esp, 4
jmp 0x10082a13
push 4
push ecx
call fcn.1007bfc1
add esp, 8
mov dword [edi + 0x5c], 0
mov word [edi + 0x60], 0x101
mov dword [edi + 0x5c], esi
test esi, esi
jne 0x10082a33
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret 4
mov ecx, dword [ebx]
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi + 0x54]
shl eax, 2
mov edx, dword [ecx]
push eax
push esi
call dword [edx + 0xc]
test byte [esp + 0x12], 0x20
jne 0x10082a89
mov eax, dword [edi + 0x2c]
test eax, eax
js 0x10082aa0
cmp eax, 0x100000
jg 0x10082aa0
push eax
call fcn.1007c3b0
add esp, 4
lea ecx, [edi + 0x6c]
push 1
push 1
push eax
call fcn.1007e810
mov edx, dword [edi + 0x6c]
test edx, edx
je 0x10082a27
mov ecx, dword [ebx]
lea esi, [esp + 0xc]
push esi
push dword [edi + 0x2c]
mov eax, dword [ecx]
push edx
call dword [eax + 0xc]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10082aa0
cmp dword [edi + 4], 0x1388
jl 0x10082aae
cmp eax, 0x989680
jbe 0x10082ac3
pop edi
pop esi
mov eax, 0x3ea
pop ebx
add esp, 0x1c
ret 4
cmp eax, 0xf4240
jbe 0x10082ac3
pop edi
pop esi
mov eax, 0x3ea
pop ebx
add esp, 0x1c
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret 4