Function at 0x10001680
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069b90
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x10
push esi
push edi
mov eax, dword [0x100a7010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
push 0x48
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
push 0
push edi
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call sub.VCRUNTIME140.dll_memset
lea esi, [edi + 0x80]
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
add esp, 0xc
mov dword [ebp - 0x1c], esi
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [esi], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
jns 0x100017d0
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
mov dword [ebp - 0x18], ecx
cmp ecx, dword [esi + 0x14]
jle 0x100017d0
shl ecx, 2
call fcn.10008050
mov edx, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
test edx, edx
je 0x100017c7
mov ecx, dword [esi + 0x10]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 0x18]
add esp, 0xc
call fcn.100080f0
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], 0
xorps xmm0, xmm0
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x30], 0
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x24], eax
mov dword [esi + 0x1c], eax
or eax, 0xffffffff
mov dword [esi + 0x28], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x34], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xc0], 0
mov dword [edi + 0xc8], 0
movups xmmword [edi + 0xb8], xmm0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xd4], 0
mov dword [edi + 0xd8], 0
mov dword [edi + 0xdc], 0
mov dword [edi + 0xe4], 0
mov dword [edi + 0xe8], 0
mov dword [edi + 0xec], 0
mov dword [edi + 0xf0], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf8], 0
mov dword [edi + 0xfc], 0
mov dword [edi + 0x100], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0xffffffff
mov dword [edi + 0x54], 0xffffffff
mov dword [edi + 0x74], 0xffffffff
mov dword [edi + 0x70], 0xffffffff
mov word [edi + 0x6e], ax
mov dword [edi + 0x50], 0xffffffff
mov dword [edi + 0x58], 0
mov dword [edi + 0x68], 0x3f800000
mov dword [edi + 0x64], 0x3f800000
mov byte [edi + 0x6c], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0xdc], 0x7f7fffff
mov eax, dword [edi + 0xdc]
mov dword [edi + 0xe0], 0x7f7fffff
mov ecx, dword [edi + 0xe0]
mov dword [edi + 0xd4], eax
mov dword [edi + 0xcc], eax
mov eax, edi
mov dword [edi + 0xd8], ecx
mov dword [edi + 0xd0], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret