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

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, dword [esp + 0x3c]
mov ecx, edi
push ebp
mov dword [esp + 0x18], ebp
call fcn.10095bb0
test eax, eax
je 0x100fa9d3
mov ecx, dword [edi + 0x18]
add ebp, 4
mov ebx, dword [esp + 0x48]
test ecx, ecx
jne 0x100fa9d3
lea eax, [ebp + 2]
cmp eax, ebp
jb 0x100fa9d3
mov edx, dword [edi + 4]
mov esi, ebp
sub esi, edx
add esi, 2
cmp esi, 0x7fffffff
ja 0x100fa9cd
mov eax, dword [edi + 8]
sub eax, edx
cmp eax, esi
jl 0x100fa9cd
test esi, esi
je 0x100fa780
push esi
push ecx
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [edi + 4]
lea eax, [ecx + esi]
mov dword [edi + 4], eax
test ecx, ecx
je 0x100fa9d3
test ebp, ebp
je 0x100fa9d3
movzx eax, bx
mov ecx, eax
mov byte [esp + 0x3d], al
shr ecx, 8
mov byte [esp + 0x3c], cl
mov ax, word [esp + 0x3c]
movzx edx, cl
mov ecx, 0x100
imul edx, ecx
mov word [ebp], ax
shr ax, 8
add dx, ax
movzx eax, dx
cmp eax, ebx
je 0x100fa7cf
or dword [edi + 0x18], 0x10
movzx ecx, byte [ebp]
movzx eax, byte [ebp + 1]
shl ecx, 8
add ecx, eax
lea esi, [ecx*2 + 2]
mov ecx, dword [edi + 0x18]
test ecx, ecx
jne 0x100fa9d3
lea eax, [esi + ebp]
cmp eax, ebp
jb 0x100fa9d3
mov edx, dword [edi + 4]
sub esi, edx
add esi, ebp
cmp esi, 0x7fffffff
ja 0x100fa9cd
mov eax, dword [edi + 8]
sub eax, edx
cmp eax, esi
jl 0x100fa9cd
test esi, esi
je 0x100fa828
push esi
push ecx
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [edi + 4]
lea eax, [ecx + esi]
mov dword [edi + 4], eax
test ecx, ecx
je 0x100fa9d3
xor edx, edx
mov dword [esp + 0x10], edx
cmp dword [esp + 0x48], edx
jbe 0x100fa9a0
mov ecx, dword [esp + 0x7c]
mov si, dx
mov word [esp + 0x3c], dx
cmp edx, dword [esp + 0x5c]
jb 0x100fa862
mov ebx, 0x10161c90
jmp 0x100fa869
mov eax, dword [esp + 0x58]
lea ebx, [eax + edx*4]
mov ebx, dword [ebx]
mov eax, ebx
cmp ecx, ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], 0
cmovbe eax, ecx
mov ecx, dword [esp + 0x78]
cmp dword [esp + 0x6c], ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x20], eax
mov eax, ebx
cmovbe eax, dword [esp + 0x6c]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [ebp]
mov dword [esp + 0x30], eax
movzx eax, byte [ebp + 1]
shl ecx, 8
add ecx, eax
cmp edx, ecx
jb 0x100fa8bd
mov eax, 0x10168b70
jmp 0x100fa8c3
lea eax, [ebp + 2]
lea eax, [eax + edx*2]
mov word [eax], si
cmp dword [edi + 0x18], 0
mov dword [esp + 0x3c], eax
jne 0x100fa900
lea ecx, [edi + 0x1c]
call fcn.100ae7a0
mov ecx, eax
test ecx, ecx
jne 0x100fa8ec
cmp dword [edi + 0x18], eax
jne 0x100fa900
mov dword [edi + 0x18], 1
jmp 0x100fa900
mov eax, dword [edi + 4]
mov dword [ecx], eax
mov eax, dword [edi + 8]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x2c]
mov dword [ecx + 0x20], eax
mov dword [edi + 0x2c], ecx
movups xmm0, xmmword [esp + 0x18]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x84]
push eax
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x4c]
push edi
movups xmmword [eax], xmm0
call fcn.100fa3f0
mov ecx, edi
test al, al
je 0x100fa9bc
push 0
push 0
push 1
call fcn.100e7f20
push eax
push dword [esp + 0x48]
mov ecx, edi
call fcn.1008a140
mov eax, dword [esp + 0x6c]
mov ecx, ebx
mov edx, dword [esp + 0x10]
cmp ebx, eax
cmova ecx, eax
add dword [esp + 0x70], ecx
sub eax, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x68]
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x7c]
cmp ebx, ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x78]
cmova ebx, ecx
inc edx
add dword [esp + 0x80], ebx
sub ecx, ebx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x10], edx
lea eax, [eax + ebx*4]
mov dword [esp + 0x78], eax
cmp edx, dword [esp + 0x48]
jb 0x100fa855
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
push edi
add ecx, 2
call fcn.100a3e40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x58
call fcn.100e7c70
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x58
or ecx, 4
mov dword [edi + 0x18], ecx
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret 0x58