Function at 0x1000569a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 0x10], 0
je 0x100056b6
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
cmp dword [ebp + 0x14], 0
je 0x100056c5
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
cmp dword [ebp + 0x18], 0
je 0x100056d4
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1001efc8], eax
je 0x100056ec
mov eax, 0x10dd
jmp 0x10005a13
cmp dword [0x1001efcc], 0
je 0x100056ff
mov eax, dword [0x1001efcc]
jmp 0x10005a13
cmp dword [ebp + 8], 0
jne 0x1000570f
mov eax, 6
jmp 0x10005a13
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10005738
mov dword [ebp - 0x1c], 6
mov ecx, dword [ebp - 0x1c]
mov dword [0x1001efcc], ecx
mov edx, dword [ebp + 8]
mov dword [0x1001efd0], edx
mov eax, dword [ebp - 0x1c]
jmp 0x10005a13
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.10004e90
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.10004e90
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x18]
jne 0x10005785
cmp dword [0x1001efc4], 0
je 0x10005780
jmp 0x10005a0e
jmp 0x10005a09
cmp dword [ebp + 0x14], 0
je 0x10005793
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
cmp dword [ebp + 0x18], 0
je 0x100057a1
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
mov dword [ecx], edx
push 0x18
call fcn.10007cc1
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10005813
mov dword [ebp - 0x1c], 8
mov ecx, dword [ebp - 0x1c]
mov dword [0x1001efcc], ecx
cmp dword [ebp - 0x14], 0
je 0x100057e3
mov edx, dword [ebp - 0x14]
push edx
call fcn.1000519b
add esp, 4
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x20], 0
je 0x10005802
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.10007cb6
add esp, 4
mov dword [ebp - 0x20], 0
mov edx, dword [ebp + 8]
mov dword [0x1001efd0], edx
mov eax, dword [ebp - 0x1c]
jmp 0x10005a13
call fcn.10007c70
mov eax, dword [ebp - 0x18]
push eax
call fcn.10005a19
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10005836
mov dword [ebp - 0x1c], 8
jmp 0x100057c1
cmp dword [ebp + 0x10], 0
je 0x10005844
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 5
jge 0x100058a2
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], 0
lea edx, [ebp - 0x28]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 8]
push ecx
call fcn.1000746a
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x28], 0
je 0x10005885
jmp 0x100058a2
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.10006150
add esp, 4
test eax, eax
je 0x100058a0
jmp 0x100058a2
jmp 0x10005851
cmp dword [ebp - 8], 5
jge 0x100058c2
mov dword [ebp - 0x1c], 9
cmp dword [0x1001efc4], 0
je 0x100058bd
jmp 0x100057ca
jmp 0x100057c1
cmp dword [ebp - 8], 0x12
jbe 0x100058d4
mov dword [ebp - 0x1c], 6
jmp 0x100057c1
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 0x14]
mov al, byte [ebp - 8]
mov byte [edx + 0x17], al
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 8]
push eax
call fcn.100060e0
add esp, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x17
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10006120
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000594e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x100057c1
mov eax, dword [ebp - 0x18]
push eax
call fcn.10005d5e
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x100059c3
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 0x1c]
cmp edx, 0x6544
je 0x100059c3
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push 0x40
push 0x40
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000599f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x100057c1
mov edx, dword [ebp - 0x10]
mov word [edx + 0x1c], 0x6544
mov eax, dword [ebp - 0x10]
mov word [eax + 0x1e], 0x6f74
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x20], 0x7275
mov edx, dword [ebp - 0x10]
mov word [edx + 0x22], 0x2173
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x1001efd8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x20]
mov dword [0x1001efd8], edx
xor eax, eax
jmp 0x10005a13
jmp 0x100057c1
jmp 0x100057ca
mov esp, ebp
pop ebp
ret 0x14