Function at 0x10040f30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a1b8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1007e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x24], ebx
lea esi, [ebx + 0x30]
mov dword [ebp - 0x58], ebx
push 0x18
mov dword [ebp - 0x24], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1006626d
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 4], 0
lea edx, [ebp - 0x54]
mov dword [ebp - 0x38], eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x4c]
movq qword [ebp - 0x1c], xmm0
sub ecx, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
xor edi, edi
mov eax, ecx
mov dword [ebp - 0x2c], ecx
xor ecx, ecx
sar eax, 2
xor edx, edx
mov dword [ebp - 0x54], 0x2fc
xor esi, esi
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x34], ecx
test eax, eax
je 0x10041040
push eax
lea ecx, [ebp - 0x1c]
call fcn.10020870
push dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x54]
push eax
push esi
mov dword [ebp - 0x38], esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x3c]
mov edx, esi
mov edi, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x40], esi
lea ecx, [esi + eax*4]
mov eax, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], eax
sub esp, 0xc
mov byte [ebp - 4], 1
mov eax, esp
sub ecx, edx
mov dword [ebp - 0x3c], ecx
sar ecx, 2
mov dword [ebp - 0x2c], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x100410ac
push ecx
mov ecx, eax
call fcn.10020870
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
mov esi, dword [eax]
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
lea eax, [esi + eax*4]
mov esi, dword [ebp - 0x4c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
call fcn.10013cd0
add esp, 0xc
mov dword [ebx], eax
test eax, eax
je 0x1004128b
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x34]
push eax
mov dword [ebp - 0x24], ecx
call esi
test eax, eax
jne 0x10041288
lea ecx, [ebx + 0x30]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], eax
mov word [ebx + 0x24], ax
mov dword [ebx + 0x28], eax
mov byte [ebx + 0x2c], al
call fcn.10043360
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, ebx
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edx
call fcn.100412f0
cmp dword [0x10081a74], 0
jne 0x1004116a
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1004116a
push 4
push eax
call esi
test eax, eax
jne 0x1004116a
mov eax, dword [ebp - 0x20]
push 4
add eax, 0x5c
push eax
call esi
test eax, eax
jne 0x1004116a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, 0x5c
mov dword [ebp - 0x24], eax
je 0x1004116a
mov eax, dword [eax]
push 4
push eax
mov dword [0x10081a74], eax
call esi
test eax, eax
jne 0x1004116a
mov eax, dword [ebp - 0x24]
mov dword [eax], 0x10041740
cmp dword [0x10081a6c], 0
jne 0x100411ba
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100411ba
push 4
push eax
call esi
test eax, eax
jne 0x100411ba
mov eax, dword [ebp - 0x20]
push 4
add eax, 0x6c
push eax
call esi
test eax, eax
jne 0x100411ba
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, 0x6c
mov dword [ebp - 0x24], eax
je 0x100411ba
mov eax, dword [eax]
push 4
push eax
mov dword [0x10081a6c], eax
call esi
test eax, eax
jne 0x100411ba
mov eax, dword [ebp - 0x24]
mov dword [eax], 0x100417e0
cmp dword [0x10081a64], 0
jne 0x1004120a
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1004120a
push 4
push eax
call esi
test eax, eax
jne 0x1004120a
mov eax, dword [ebp - 0x20]
push 4
add eax, 0x7c
push eax
call esi
test eax, eax
jne 0x1004120a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, 0x7c
mov dword [ebp - 0x24], eax
je 0x1004120a
mov eax, dword [eax]
push 4
push eax
mov dword [0x10081a64], eax
call esi
test eax, eax
jne 0x1004120a
mov eax, dword [ebp - 0x24]
mov dword [eax], 0x10041f70
cmp dword [0x10081a5c], 0
jne 0x1004125e
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1004125e
push 4
push eax
call esi
test eax, eax
jne 0x1004125e
mov eax, dword [ebp - 0x20]
push 4
add eax, 0x84
push eax
call esi
test eax, eax
jne 0x1004125e
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, 0x84
mov dword [ebp - 0x24], eax
je 0x1004125e
mov eax, dword [eax]
push 4
push eax
mov dword [0x10081a5c], eax
call esi
test eax, eax
jne 0x1004125e
mov eax, dword [ebp - 0x24]
mov dword [eax], 0x10042780
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x100412c1
sub edi, ecx
mov eax, ecx
and edi, 0xfffffffc
cmp edi, 0x1000
jb 0x10041284
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100412df
push edi
push ecx
jmp 0x100412b9
mov esi, dword [ebp - 0x24]
cmp dword [ebp - 0x28], 0
mov dword [ebx], 0
je 0x100412c1
sub edi, dword [ebp - 0x38]
and edi, 0xfffffffc
cmp edi, 0x1000
jb 0x100412b7
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x100412df
mov esi, ecx
push edi
push esi
call fcn.100662c0
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006625f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3