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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb0
mov esi, esp
mov dword [esi + 0x98], ebp
mov dword [esi + 0x9c], esp
mov dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xa4], 0x10016f40
mov ecx, dword [ebp + 0x10]
cmp byte [ebp + 0x14], 0
lea edx, [esi + 0xa0]
mov eax, dword fs:[0]
mov dword [esi + 0xa0], eax
mov dword fs:[0], edx
je 0x10016afb
mov dword [esi + 0xa8], 0
push ecx
call fcn.101ab560
add esp, 4
lea ecx, [esi + 0x20]
push edx
push eax
push ecx
call fcn.101a1c20
add esp, 0xc
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edi, dword [esi + 0x28]
mov edx, ebx
mov dword [esi + 0xc], edi
xor edx, 2
or edx, ecx
mov edx, dword [esi + 0x2c]
mov dword [esi + 0x10], edx
jne 0x10016b7b
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], edi
mov ebx, dword [eax + 8]
test ebx, ebx
js 0x10016d19
mov eax, dword [eax + 4]
je 0x10016c92
mov dword [esi + 8], eax
movzx eax, byte [0x10284b49]
push 1
push ebx
call fcn.10013770
add esp, 8
test eax, eax
jne 0x10016b71
mov eax, 1
jmp 0x10016d1b
mov dword [esi + 0xa8], 0
push ecx
call fcn.101ab560
add esp, 4
lea ecx, [esi + 0x20]
push edx
push eax
push ecx
call fcn.101a1ed0
add esp, 0xc
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edi, dword [esi + 0x28]
mov edx, ebx
mov dword [esi + 0xc], edi
xor edx, 2
or edx, ecx
mov edx, dword [esi + 0x2c]
mov dword [esi + 0x10], edx
jne 0x10016b7b
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], edi
mov ebx, dword [eax + 8]
test ebx, ebx
js 0x10016d31
mov eax, dword [eax + 4]
je 0x10016c92
mov dword [esi + 8], eax
movzx eax, byte [0x10284b49]
push 1
push ebx
call fcn.10013770
add esp, 8
test eax, eax
je 0x10016d35
mov edi, eax
mov eax, dword [esi + 8]
jmp 0x10016c97
mov eax, dword [esi + 0x30]
movzx edx, word [esi + 0x39]
movsd xmm1, qword [esi + 0x4c]
movsd xmm0, qword [esi + 0x44]
mov edi, dword [esi + 0x6c]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x34]
mov word [esi + 4], dx
movzx edx, byte [esi + 0x3b]
movsd qword [esi + 0x78], xmm1
movsd xmm1, qword [esi + 0x54]
movsd xmm4, qword [esi + 0x78]
mov dword [esi + 0x1c], eax
movzx eax, byte [esi + 0x38]
mov byte [esi + 6], dl
mov edx, dword [ebp + 0x10]
movsd qword [esi + 0x80], xmm1
movsd xmm1, qword [esi + 0x5c]
mov byte [esi + 3], al
mov eax, dword [esi + 0x40]
movsd xmm2, qword [edx]
movsd xmm3, qword [edx + 8]
movsd qword [esi + 0x88], xmm1
movsd xmm1, qword [esi + 0x64]
movzx edx, byte [ebp + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x3c]
movsd qword [esi + 0x90], xmm1
movsd xmm1, qword [esi + 0x70]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 8]
movsd qword [eax + 0x60], xmm3
movsd qword [eax + 0x58], xmm2
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax], ebx
movsd xmm2, qword [esi + 0x80]
movsd xmm3, qword [esi + 0x88]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 0x1c]
mov dword [eax + 0x14], ecx
movzx ecx, byte [esi + 3]
mov byte [eax + 0x18], cl
movzx ecx, word [esi + 4]
mov word [eax + 0x19], cx
movzx ecx, byte [esi + 6]
mov byte [eax + 0x1b], cl
mov ecx, dword [esi + 0x18]
mov dword [eax + 0x20], ecx
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x1c], ecx
movlps qword [eax + 0x24], xmm0
movsd qword [eax + 0x34], xmm2
movsd xmm2, qword [esi + 0x90]
mov ecx, dword [ebp + 0xc]
movsd qword [eax + 0x2c], xmm4
movsd qword [eax + 0x3c], xmm3
movsd qword [eax + 0x44], xmm2
mov dword [eax + 0x4c], edi
movlps qword [eax + 0x50], xmm1
mov dword [eax + 0x68], edi
movss dword [eax + 0x6c], xmm1
mov dword [eax + 0x70], ecx
mov byte [eax + 0x74], dl
jmp 0x10016d04
mov edi, 1
push ebx
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
movzx edx, byte [ecx + 0xc]
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], ebx
mov dword [eax + 8], 0x80000000
mov byte [eax + 0x18], dl
mov edx, dword [esi + 0xc]
mov dword [eax + 0x1c], edx
mov edx, dword [esi + 0x10]
mov dword [eax + 0x20], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x28], edx
mov edx, dword [ecx]
mov dword [eax + 4], 0
mov dword [eax], 2
test edx, edx
je 0x10016d04
push 1
push edx
push dword [ecx + 4]
mov edi, eax
call fcn.10013780
add esp, 0xc
mov eax, dword [esi + 0xa0]
mov dword fs:[0], eax
mov eax, edi
jmp 0x10016d11
mov ecx, dword [esi + 0xa0]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [esi + 0xa8], 1
push ebx
push eax
call fcn.101cc661
add esp, 8
jmp 0x10016d4e
xor eax, eax
jmp 0x10016d3a
mov eax, 1
mov dword [esi + 0xa8], 2
push ebx
push eax
call fcn.101cc661
add esp, 8
ud2