Function at 0x10020530
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066038
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10078014]
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 edi, ecx
or eax, 0xffffffff
mov byte [ebp - 0x28], 0
push dword [ebp - 0x28]
mov dword [edi + 0x38], eax
lea ecx, [ebp - 0x24]
mov word [edi + 0x3c], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
movq qword [ebp - 0x24], xmm0
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x1c], 0
push eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], 0
mov dword [ebp - 0x34], 0x350
mov dword [ebp - 0x30], 0x140
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.1001f490
sub esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
mov ecx, esp
push eax
call fcn.1001f510
mov ecx, 0xd78d54
call fcn.100152c0
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add esp, 0xc
mov dword [edi], eax
push 4
push 0x4de1e6
call ebx
test eax, eax
jne 0x100206ab
push 4
push 0x4de1e6
call ebx
test eax, eax
jne 0x100206ab
push 4
push 0x100216b0
call ebx
test eax, eax
jne 0x100206ab
push 4
push 0x4de1e6
call ebx
test eax, eax
jne 0x10020685
xor esi, esi
lea ecx, [esi + 0x4de1e6]
mov dl, 0x90
call fcn.100151b0
inc esi
cmp esi, 5
jl 0x10020672
push 0
mov eax, 0x100216b0
mov byte [ebp - 0x18], 0xe8
sub eax, 0x4de1eb
push 5
mov dword [ebp - 0x17], eax
lea eax, [ebp - 0x18]
push eax
push 0x4de1e6
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [edi]
test eax, eax
je 0x1002071c
push 4
push eax
call ebx
test eax, eax
jne 0x1002071c
mov ecx, edi
call fcn.100207b0
cmp dword [0x1007a3a0], 0
jne 0x10020704
mov esi, dword [edi]
test esi, esi
je 0x100206ec
push 4
push esi
call ebx
test eax, eax
jne 0x100206ec
push 4
lea eax, [esi + 0x64]
push eax
call ebx
test eax, eax
jne 0x100206ec
mov esi, dword [esi]
add esi, 0x64
jmp 0x100206ee
xor esi, esi
mov eax, dword [esi]
push 4
push eax
mov dword [0x1007a3a0], eax
call ebx
test eax, eax
jne 0x10020704
mov dword [esi], 0x100216e0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10020784
mov edx, dword [ebp - 0x1c]
sub edx, ecx
push 4
sar edx, 2
call fcn.10002790
jmp 0x10020781
mov ecx, dword [ebp - 0x24]
mov dword [edi], 0
test ecx, ecx
je 0x10020784
mov eax, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x1002073e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
shl eax, 2
cmp eax, 0x1000
jb 0x1002077b
test byte [ebp - 0x24], 0x1f
je 0x10020754
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10020761
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub ecx, eax
cmp ecx, 4
jae 0x1002076e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp ecx, 0x23
jbe 0x10020779
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, eax
push ecx
call fcn.10063060
add esp, 4
mov eax, edi
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.10063065
mov esp, ebp
pop ebp
ret