Function at 0x1005a0e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064ab5
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x10076040]
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 - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xb4], ebx
lea edi, [ebx + 8]
mov byte [ebx], 0
mov dword [ebp - 0x30], edi
push 0x30
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.10060688
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi], eax
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
lea esi, [edi + 0xc]
mov dword [ebp - 0x34], esi
push 0x30
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10060688
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [ebp - 4], 2
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
add edi, 0x28
push 0x3ec
mov dword [ebp - 0x34], edi
call fcn.10060688
mov esi, eax
mov dword [ebp - 0x34], esi
push 0x3ec
push 0
push esi
mov byte [ebp - 4], 3
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov ecx, esi
push 0x10089348
push 0
push 0x1000
call fcn.1004f640
mov dword [edi], eax
mov byte [ebp - 4], 4
lea edi, [ebx + 0x34]
push 0x3ec
mov dword [ebp - 0x34], edi
call fcn.10060688
mov esi, eax
mov dword [ebp - 0x34], esi
push 0x3ec
push 0
push esi
mov byte [ebp - 4], 5
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
push 0
push 0
push 0x1000
call fcn.1004f640
mov dword [edi], eax
mov byte [ebp - 4], 6
xorps xmm0, xmm0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
movq qword [ebx + 0x44], xmm0
push 4
mov byte [ebx + 0x4c], 0
call fcn.10060688
mov dword [eax], 0
mov dword [ebx + 0x48], eax
mov dword [ebp - 4], 7
lea edi, [ebx + 0x50]
mov dword [ebp - 0x34], edi
push 0x30
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.10060688
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi], eax
mov dword [edi + 8], 0
mov byte [ebp - 4], 8
lea esi, [edi + 0xc]
mov dword [ebp - 0x30], esi
push 0x30
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10060688
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [ebp - 4], 0xa
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
add edi, 0x28
push 0x3ec
mov dword [ebp - 0x30], edi
call fcn.10060688
mov esi, eax
mov dword [ebp - 0x30], esi
push 0x3ec
push 0
push esi
mov byte [ebp - 4], 0xb
call sub.VCRUNTIME140.dll_memset
add esp, 0x1c
mov ecx, esi
push 0x10089348
push 0
push 0x1000
call fcn.1004f640
mov dword [edi], eax
mov byte [ebp - 4], 0xc
lea edi, [ebx + 0x7c]
push 0x3ec
mov dword [ebp - 0x30], edi
call fcn.10060688
mov esi, eax
mov dword [ebp - 0x30], esi
push 0x3ec
push 0
push esi
mov byte [ebp - 4], 0xd
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
push 0
push 0
push 0x1000
call fcn.1004f640
mov dword [edi], eax
mov byte [ebp - 4], 0xe
xorps xmm0, xmm0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
movq qword [ebx + 0x8c], xmm0
mov byte [ebx + 0x94], 0
push 4
call fcn.10060688
mov dword [eax], 0
mov dword [ebx + 0x90], eax
add ebx, 0x98
mov dword [ebp - 0x34], ebx
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov byte [ebp - 4], 0x11
lea edi, [ebx + 0x38]
push 0x3ec
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebp - 0x30], edi
call fcn.10060688
mov esi, eax
mov dword [ebp - 0x30], esi
push 0x3ec
push 0
push esi
mov byte [ebp - 4], 0x12
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
mov ecx, esi
push 0x10089348
push 0
push 0x1000
call fcn.1004f640
mov dword [edi], eax
mov byte [ebp - 4], 0x13
lea edi, [ebx + 0x3c]
push 0x3ec
mov dword [ebp - 0x30], edi
call fcn.10060688
mov esi, eax
mov dword [ebp - 0x30], esi
push 0x3ec
push 0
push esi
mov byte [ebp - 4], 0x14
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
push 0
push 0
push 0x1000
call fcn.1004f640
mov dword [edi], eax
mov byte [ebp - 4], 0x15
xorps xmm0, xmm0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
movq qword [ebx + 0x4c], xmm0
push 4
mov word [ebx + 0x54], 1
call fcn.10060688
add esp, 4
mov dword [eax], 0
mov dword [ebx + 0x50], eax
mov byte [ebp - 4], 0x16
mov ebx, dword [ebp - 0x38]
mov word [ebx + 0xf0], 0
mov dword [ebx + 0xf4], 0
mov dword [ebx + 0xf8], 0
mov word [ebx + 0x12c], 0
call fcn.10052c80
push 0x11
mov dword [ebx + 0x130], eax
call fcn.1005ab30
mov dword [ebx + 0x20], eax
lea ecx, [ebx + 0x24]
lea eax, [ebp - 0xb8]
cmp ecx, eax
je 0x1005a4d2
mov eax, dword [ecx]
mov dword [ecx], 0
test eax, eax
je 0x1005a4d2
push eax
call fcn.10060d93
add esp, 4
push 0x10
call fcn.1005ab30
mov dword [ebx + 0x68], eax
lea ecx, [ebp - 0xc0]
lea eax, [ebx + 0x6c]
cmp eax, ecx
je 0x1005a4fe
mov ecx, dword [eax]
mov dword [eax], 0
test ecx, ecx
je 0x1005a4fe
push ecx
call fcn.10060d93
add esp, 4
mov al, byte [ebp - 0x1c]
mov byte [ebp - 0x58], al
mov al, byte [ebp - 0x1b]
mov byte [ebp - 0x57], al
mov al, byte [ebp - 0x1a]
mov byte [ebp - 0x56], al
mov al, byte [ebp - 0x19]
mov byte [ebp - 0x55], al
mov al, byte [ebp - 0x18]
mov byte [ebp - 0x54], al
mov al, byte [ebp - 0x17]
mov byte [ebp - 0x53], al
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0x1006e90c
mov dword [ebp - 0x5c], 0x1005abd0
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x3c], eax
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x38], ecx
mov dword [ecx + 0x24], 0
mov byte [ebp - 4], 0x18
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x1005a560
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x24], eax
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0x17
push eax
lea ecx, [ebx + 8]
call fcn.1005bf60
mov ecx, dword [ebp - 0xc8]
test ecx, ecx
je 0x1005a590
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0xec]
cmp ecx, eax
setne al
push eax
call edx
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x1005a5a7
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x60]
cmp ecx, eax
setne al
push eax
call edx
mov al, byte [ebp - 0x18]
mov byte [ebp - 0xa8], al
mov al, byte [ebp - 0x17]
mov byte [ebp - 0xa7], al
mov al, byte [ebp - 0x16]
mov byte [ebp - 0xa6], al
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x1006e9dc
mov dword [ebp - 0xac], 0x1005b130
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0x8c], eax
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x38], ecx
mov dword [ecx + 0x24], 0
mov byte [ebp - 4], 0x1a
mov edx, dword [ebp - 0x8c]
test edx, edx
je 0x1005a612
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x24], eax
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 0x19
push eax
lea ecx, [ebx + 0x50]
call fcn.1005bb80
mov ecx, dword [ebp - 0xf0]
test ecx, ecx
je 0x1005a642
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x114]
cmp ecx, eax
setne al
push eax
call edx
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x1005a65f
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0xb0]
cmp ecx, eax
setne al
push eax
call edx
mov al, byte [ebp - 0x18]
mov byte [ebp - 0x80], al
mov al, byte [ebp - 0x17]
mov byte [ebp - 0x7f], al
mov al, byte [ebp - 0x16]
mov byte [ebp - 0x7e], al
mov al, byte [ebp - 0x15]
mov byte [ebp - 0x7d], al
lea eax, [ebp - 0x88]
mov dword [ebp - 0x64], eax
lea eax, [ebx + 0x5c]
mov dword [ebp - 0x88], 0x1006e928
mov dword [ebp - 0x84], 0x1005b150
mov dword [ebp - 0x7c], ebx
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x38], ecx
mov dword [ecx + 0x24], 0
mov byte [ebp - 4], 0x1c
mov edx, dword [ebp - 0x64]
test edx, edx
je 0x1005a6c4
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax]
mov edx, dword [ebp - 0x38]
mov dword [edx + 0x24], eax
lea eax, [ebx + 0x5c]
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0x1b
push ecx
mov ecx, eax
call fcn.1005b9a0
mov ecx, dword [ebp - 0x118]
test ecx, ecx
je 0x1005a6f3
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x13c]
cmp ecx, eax
setne al
push eax
call edx
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x1005a712
mov edx, dword [ecx]
lea eax, [ebp - 0x88]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
cmp byte [ebx + 0x4c], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualQuery]
jne 0x1005a78c
push 0x1c
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebx + 0x20]
call eax
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
je 0x1005a741
cmp eax, 0x20
je 0x1005a741
cmp eax, 0x40
je 0x1005a741
cmp eax, 0x80
jne 0x1005a787
push ecx
mov ecx, dword [ebx + 0x20]
lea edx, [ebx + 0x34]
call fcn.100491b0
add esp, 4
test al, al
je 0x1005a787
mov eax, dword [ebx + 0x34]
push dword [eax + 0x20]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x1005a787
push 1
lea ecx, [ebx + 8]
call fcn.1005c140
test al, al
mov eax, dword [sym.imp.KERNEL32.dll_VirtualQuery]
je 0x1005a78c
mov byte [ebx + 0x4c], 1
jmp 0x1005a78c
mov eax, dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp byte [ebx + 0x94], 0
jne 0x1005a7ff
push 0x1c
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebx + 0x68]
call eax
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
je 0x1005a7b9
cmp eax, 0x20
je 0x1005a7b9
cmp eax, 0x40
je 0x1005a7b9
cmp eax, 0x80
jne 0x1005a7ff
push ecx
mov ecx, dword [ebx + 0x68]
lea edx, [ebx + 0x7c]
call fcn.100491b0
add esp, 4
test al, al
je 0x1005a7ff
mov eax, dword [ebx + 0x7c]
push dword [eax + 0x20]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x1005a7ff
push 1
lea ecx, [ebx + 0x50]
call fcn.1005bd60
test al, al
mov eax, ebx
je 0x1005a801
mov byte [ebx + 0x94], 1
jmp 0x1005a801
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.1006067a
mov esp, ebp
pop ebp
ret