Function at 0x413a50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
je 0x413a6c
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
cmp dword [ebp + 0x14], 0
je 0x413a7b
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
cmp dword [ebp + 0x18], 0
je 0x413a8a
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x47f130], eax
je 0x413aa2
mov eax, 0x10dd
jmp 0x413e13
cmp dword [0x47f134], 0
je 0x413ab5
mov eax, dword [0x47f134]
jmp 0x413e13
cmp dword [ebp + 8], 0
jne 0x413ac5
mov eax, 6
jmp 0x413e13
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x413aee
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x47f134], ecx
mov edx, dword [ebp + 8]
mov dword [0x47f138], edx
mov eax, dword [ebp - 0xc]
jmp 0x413e13
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.00414060
mov dword [ebp - 0x10], eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00414060
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x10]
jne 0x413b3b
cmp dword [0x47f12c], 0
je 0x413b37
jmp 0x413b80
jmp 0x413b77
cmp dword [ebp + 0x14], 0
je 0x413b49
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
cmp dword [ebp + 0x18], 0
je 0x413b57
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
mov dword [ecx], edx
push 0x18
call fcn.0045be5d
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x413bcb
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x47f134], ecx
cmp dword [ebp - 4], 0
je 0x413b99
mov edx, dword [ebp - 4]
push edx
call fcn.004146d0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x413bba
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
push 0x18
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0045be8d
add esp, 8
mov dword [ebp - 8], 0
mov edx, dword [ebp + 8]
mov dword [0x47f138], edx
mov eax, dword [ebp - 0xc]
jmp 0x413e13
call fcn.00413120
mov eax, dword [ebp - 0x10]
push eax
call fcn.004142f0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x413bee
mov dword [ebp - 0xc], 8
jmp 0x413b77
cmp dword [ebp + 0x10], 0
je 0x413bfc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 5
jge 0x413c5a
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.00414cb0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], 0
je 0x413c3d
jmp 0x413c5a
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00414850
add esp, 4
test eax, eax
je 0x413c58
jmp 0x413c5a
jmp 0x413c09
cmp dword [ebp - 0x14], 5
jge 0x413c7c
mov dword [ebp - 0xc], 9
cmp dword [0x47f12c], 0
je 0x413c77
jmp 0x413b80
jmp 0x413b77
cmp dword [ebp - 0x14], 0x12
jbe 0x413c8e
mov dword [ebp - 0xc], 6
jmp 0x413b77
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 4]
mov al, byte [ebp - 0x14]
mov byte [edx + 0x17], al
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
push eax
call fcn.00414a60
add esp, 8
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
add ecx, 0x17
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00414a10
add esp, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push 0x40
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x413d08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x413b77
mov eax, dword [ebp - 0x10]
push eax
call fcn.00414730
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x413dcf
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + edx + 0x1c]
cmp ecx, 0x6544
je 0x413dcf
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x20]
push edx
push 0x40
push 0x40
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x413d68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x413b77
mov ecx, 2
imul edx, ecx, 0
mov eax, 0x6544
mov ecx, dword [ebp - 0x18]
mov word [ecx + edx + 0x1c], ax
mov edx, 2
shl edx, 0
mov eax, 0x6f74
mov ecx, dword [ebp - 0x18]
mov word [ecx + edx + 0x1c], ax
mov edx, 2
shl edx, 1
mov eax, 0x7275
mov ecx, dword [ebp - 0x18]
mov word [ecx + edx + 0x1c], ax
mov edx, 2
imul eax, edx, 3
mov ecx, 0x2173
mov edx, dword [ebp - 0x18]
mov word [edx + eax + 0x1c], cx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0x40
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [0x47f140]
mov dword [eax], ecx
mov edx, dword [ebp - 8]
mov dword [0x47f140], edx
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14