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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
mov eax, dword [0x1036a00c]
xor eax, esp
mov dword [esp + 0xb4], eax
movsd xmm0, qword [0x103001c8]
mov edx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
movaps xmm2, xmm0
mov esi, dword [edx + 0x54]
mov ecx, 0
mov dword [esp + 0x34], edx
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0x400
lea eax, [esi + 1]
mov dword [esp + 0x6c], 0x400
mov dword [edx + 0x54], eax
mov eax, esi
and eax, 1
mov dword [esp + 0x70], 0
sar esi, 1
mov dword [esp + 0x20], eax
mov eax, esi
mov dword [esp + 0x74], 0
je 0x1022bc1a
inc ecx
mulsd xmm2, xmm0
sar eax, 1
jne 0x1022bbe5
test ecx, ecx
je 0x1022bc1a
mov edx, 1
lea eax, [esi - 1]
shl edx, cl
movaps xmm0, xmm2
dec edx
addsd xmm0, xmm2
and edx, eax
movd xmm1, edx
mov edx, dword [esp + 0x34]
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm0
addsd xmm2, xmm1
movsd xmm0, qword [0x103001f8]
lea ecx, [esp + 0x78]
mov eax, dword [edx + 0x40]
subsd xmm0, xmm2
mov esi, dword [edx + 0x20]
sub esp, 0xc
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], edx
movsd xmm1, qword [eax]
mulsd xmm0, qword [edx]
mulsd xmm1, xmm2
addsd xmm1, xmm0
movsd qword [esp + 0xa4], xmm1
movss xmm0, dword [esi + 0xc8]
mov eax, dword [esi + 0xd4]
movsd qword [esp + 4], xmm1
movss dword [esp], xmm0
push dword [esi + 0xb4]
mov eax, dword [eax*4 + 0x102e49b8]
push ecx
call eax
add esp, 8
movups xmm0, xmmword [eax]
movups xmmword [esp + 0xac], xmm0
mov eax, dword [esi + 0xd4]
movsd xmm0, qword [esp + 0xa4]
movsd qword [esp + 4], xmm0
movss xmm0, dword [esi + 0xc8]
mov eax, dword [eax*4 + 0x102e497c]
movss dword [esp], xmm0
push dword [esi + 0xb4]
call eax
movsd xmm2, qword [esp + 0xb0]
xor ecx, ecx
movsd xmm3, qword [esp + 0xb8]
movaps xmm1, xmm2
movsd xmm4, qword [0x103009e0]
movaps xmm0, xmm3
add esp, 0x10
mov dword [esp + 0x90], eax
andps xmm0, xmm4
mov dword [esp + 0x94], edx
andps xmm1, xmm4
mov byte [esp + 0xb0], 1
comisd xmm0, xmm1
xorps xmm0, xmm0
setbe cl
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x1022bd2f
ucomisd xmm3, xmm0
lahf
test ah, 0x44
jp 0x1022bd2f
mov byte [esp + 0xe], 0
jmp 0x1022c20e
add ecx, dword [esp + 0x20]
lea eax, [esp + 0x88]
mov dword [esp + 0x10], eax
mov eax, ecx
and eax, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], eax
nop dword [eax + eax]
movss xmm2, dword [esp + eax*4 + 0x90]
movss xmm3, dword [edi + ecx*4 + 0xf0]
cvtps2pd xmm0, xmm3
cvtps2pd xmm1, xmm2
subsd xmm1, xmm0
movsd xmm0, qword [0x103000a0]
andps xmm1, xmm4
comisd xmm0, xmm1
ja 0x1022bd94
shr ecx, 1
xor eax, eax
not cl
and ecx, 1
comiss xmm3, xmm2
seta al
cmp eax, ecx
je 0x1022bdc7
mov ecx, dword [esp + 0x30]
lea esi, [edi + 8]
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x94]
mov ecx, esi
push eax
call fcn.1022b4a0
mov esi, dword [esi + 0x9c]
mov ecx, dword [esp + 0x30]
test esi, esi
jne 0x1022bd97
movsd xmm4, qword [0x103009e0]
mov edi, dword [edi + 0xec]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
test edi, edi
jne 0x1022bd50
lea eax, [esp + 0x58]
mov dword [esp + 0x40], 1
mov esi, eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
xor edi, edi
mov dword [esp + 0x44], edi
mov edx, 1
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], esi
mov dword [esp + 0x28], eax
test eax, eax
je 0x1022beec
lea ecx, [edi + 1]
cmp ecx, edx
jg 0x1022be33
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jge 0x1022bec3
mov edx, dword [esp + 0x48]
lea eax, [ecx + 1]
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x40]
cmp eax, ecx
cmovge ecx, eax
cmp ecx, edx
je 0x1022bec3
mov dword [esp + 0x48], ecx
cmp ecx, dword [esp + 0x40]
jne 0x1022be5d
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x10], edx
test edx, edx
jne 0x1022be88
lea esi, [ecx*4]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esp + 0x10], eax
mov edx, eax
test esi, esi
je 0x1022be80
test edx, edx
je 0x1022c238
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
xor ecx, ecx
test edi, edi
jle 0x1022bea3
nop
mov eax, dword [esi + ecx*4]
mov dword [edx + ecx*4], eax
inc ecx
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x50]
cmp ecx, edi
jl 0x1022be90
cmp esi, dword [esp + 0x4c]
je 0x1022bebb
test esi, esi
je 0x1022bebb
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, dword [esp + 0x48]
add esp, 4
mov esi, dword [esp + 0x10]
mov dword [esp + 0x50], esi
mov ecx, dword [esp + 0x28]
lea eax, [esi + edi*4]
inc edi
mov dword [esp + 0x44], edi
mov dword [eax], ecx
mov ecx, dword [ecx]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x1022beec
mov edx, dword [esp + 0x48]
jmp 0x1022be12
mov ecx, dword [esp + 0x30]
mov eax, ecx
shr eax, 1
not al
and al, 1
cmp dword [esp + 0x24], 0
je 0x1022bf15
test al, al
mov dword [esp + 0x20], 0x1022bad0
mov edx, 0x1022baf0
cmovne edx, dword [esp + 0x20]
jmp 0x1022bf29
test al, al
mov dword [esp + 0x20], 0x1022ba90
mov edx, 0x1022bab0
cmovne edx, dword [esp + 0x20]
test esi, esi
je 0x1022bf32
lea eax, [esi + edi*4]
jmp 0x1022bf34
xor eax, eax
mov dword [esp + 0x10], eax
add eax, 0xfffffffc
cmp esi, eax
jae 0x1022bf7a
sub eax, esi
sar eax, 2
sub eax, 1
je 0x1022bf51
bsr eax, eax
xor eax, 0x1f
jmp 0x1022bf56
mov eax, 0x20
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffffc
push edx
push ecx
mov ecx, 0x20
mov edx, esi
sub ecx, eax
add ecx, ecx
call fcn.1022c850
mov esi, dword [esp + 0x58]
add esp, 8
mov ecx, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x18], 0
xor edx, edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
test edi, edi
jle 0x1022c1f5
nop
mov eax, dword [esi + edx*4]
mov dword [esp + 0x10], eax
cmp byte [eax + 0x28], 0
je 0x1022c231
mov edx, dword [esp + 0x10]
mov eax, ecx
not eax
xorps xmm1, xmm1
and eax, 1
movsd xmm0, qword [edx + eax*8 + 0x18]
lea eax, [ecx + 1]
comisd xmm0, xmm1
seta dl
shr eax, 1
not al
and al, 1
xor dl, al
mov eax, dword [esp + 0x10]
mov byte [esp + 0xf], dl
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
mov edx, dword [eax + 0x20]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0x4c]
test edx, edx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x28]
jne 0x1022c006
cmp dword [eax + 0x50], 0
je 0x1022c1e8
mov ecx, dword [esi + edx*4]
mov eax, dword [esp + 0x18]
add ecx, 8
mov dword [esp + 0x20], ecx
test eax, eax
je 0x1022c02d
mov edx, ecx
mov ecx, eax
call fcn.10222cb0
test al, al
jne 0x1022c231
mov edx, dword [esp + 0x28]
lea eax, [edi - 1]
cmp edx, eax
jge 0x1022c04c
mov ecx, dword [esi + edx*4 + 4]
mov edx, dword [esp + 0x20]
add ecx, 8
call fcn.10222cb0
test al, al
jne 0x1022c231
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov byte [esp + 0x17], 0
mov eax, dword [eax + 0x98]
mov al, byte [eax + 0x10d]
test al, al
mov byte [esp + 0xe], al
mov eax, dword [esp + 0x2c]
cmove edx, eax
cmp byte [esp + 0xe], 0
cmove eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
neg eax
mov ecx, dword [esp + 0x18]
cmp byte [esp + 0xf], 0
cmove eax, dword [esp + 0x38]
add eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x50]
neg eax
cmp byte [esp + 0xf], 0
cmove eax, dword [esi + 0x50]
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x3c], eax
mov eax, ecx
neg eax
test ecx, ecx
cmovns eax, ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
mov esi, eax
neg esi
test eax, eax
cmovns esi, eax
mov eax, dword [esp + 0x38]
cmp eax, esi
jne 0x1022c0e4
mov eax, ecx
shr eax, 0x1f
jmp 0x1022c0e7
setl al
mov esi, dword [esp + 0x10]
test al, al
cmovne ecx, dword [esp + 0x2c]
cmp dword [esp + 0x3c], 0x80000001
mov dword [esp + 0x18], ecx
jne 0x1022c108
mov dword [esi + 0x44], ecx
mov byte [esp + 0x17], 1
mov ecx, dword [esp + 0x1c]
mov eax, edx
neg eax
test edx, edx
cmovns eax, edx
neg ecx
cmp dword [esp + 0x1c], 0
cmovge ecx, dword [esp + 0x1c]
cmp eax, ecx
jne 0x1022c12c
mov eax, edx
shr eax, 0x1f
jmp 0x1022c12f
setl al
mov ecx, dword [esp + 0x18]
test al, al
cmovne edx, dword [esp + 0x1c]
cmp dword [esi + 0x48], 0x80000001
mov dword [esp + 0x3c], edx
jne 0x1022c14a
mov dword [esi + 0x48], edx
cmp byte [esp + 0x17], 0
je 0x1022c1a5
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0x98]
mov eax, dword [eax]
cmp dword [eax + 0x10], 2
jne 0x1022c17d
mov eax, dword [esp + 0x24]
movzx ecx, byte [esp + 0xf]
mov eax, dword [eax + 0x98]
mov dword [eax + 0x100], ecx
jmp 0x1022c1a5
push 0
push edx
push ecx
push dword [esi + 0x40]
mov ecx, dword [esp + 0x34]
push esi
call fcn.102318f0
mov ecx, dword [esp + 0x24]
push 0
push dword [esp + 0x40]
push dword [esp + 0x20]
push esi
push dword [esi + 0x40]
call fcn.102318f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0x98]
mov eax, dword [eax]
inc dword [eax + 8]
mov eax, dword [esp + 0x1c]
mov edx, eax
cmp byte [esp + 0xe], 0
mov esi, dword [esp + 0x50]
cmove edx, ecx
cmove ecx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x30]
inc edx
mov dword [esp + 0x28], edx
cmp edx, edi
jl 0x1022bfa0
mov byte [esp + 0xe], 1
cmp esi, dword [esp + 0x4c]
je 0x1022c20e
test esi, esi
je 0x1022c20e
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea ecx, [esp + 0x64]
call fcn.101cf910
mov ecx, dword [esp + 0xbc]
mov al, byte [esp + 0xe]
pop edi
pop esi
xor ecx, esp
call fcn.102af9d5
mov esp, ebp
pop ebp
ret 4
mov byte [esp + 0xe], 0
jmp 0x1022c1fa
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3