Function at 0x56d360
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
test dl, dl
je 0x56d37d
add esp, 0xfffffff0
call fcn.004030f4
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, 0x5c5644
xor eax, eax
push ebp
push 0x56d6af
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.0041478c
mov eax, esi
call fcn.00403e5c
mov byte [eax + 8], 0x76
mov byte [ebx + 0x25c], 1
xor eax, eax
mov dword [ebx + 0x23c], eax
mov eax, esi
call fcn.00403e5c
mov byte [eax + 4], 0x61
xor eax, eax
mov dword [ebx + 0x240], eax
xor eax, eax
mov dword [ebx + 0x244], eax
mov eax, esi
call fcn.00403e5c
mov byte [eax + 7], 0x65
xor eax, eax
mov dword [ebx + 0x248], eax
xor eax, eax
mov dword [0x5c56b8], eax
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0x13], 0x65
mov byte [ebx + 0x27c], 0
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0x18], 0x6e
xor eax, eax
mov dword [0x5ccc68], eax
xor eax, eax
mov dword [ebx + 0x238], eax
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0xc], 0x61
mov eax, dword [0x5c64a4]
mov eax, dword [eax]
call fcn.005282bc
mov eax, esi
call fcn.00403e5c
mov byte [eax + 3], 0x64
mov dword [0x5c56e0], 0xf455ff
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0xb], 0x75
mov dword [0x5c56e4], 0x4d3412
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0x17], 0x6f
mov dword [0x5c56e8], 0xa502f3bc
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0xa], 0x6c
mov dword [0x5c56ec], 0x4d3412
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0x14], 0x72
mov dword [0x5c56f0], 0xa502f3bc
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0xf], 0x6f
lea eax, [ebp - 0xc]
call fcn.00403a10
mov dword [ebp - 8], 0x340
push 0x40
push 0x1000
mov edi, dword [ebp - 8]
add edi, 0x10
push edi
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebx + 0x238], eax
mov eax, esi
call fcn.00403e5c
mov byte [eax], 0x33
mov edx, edi
mov eax, dword [ebx + 0x238]
xor ecx, ecx
call fcn.00402b14
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0x10], 0x6e
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, dword [0x5c64a4]
mov eax, dword [eax]
call fcn.005282c8
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
call fcn.0056b4b8
mov edi, eax
mov eax, esi
call fcn.00403e5c
mov byte [eax + 9], 0x61
lea ecx, [ebp - 0xc]
mov edx, 8
mov eax, edi
call fcn.00407490
mov eax, fcn.0054e3a8
mov dword [ebp - 0x10], eax
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0x15], 0x73
mov eax, 0x550abc
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
call fcn.0056b4b8
mov edi, eax
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0x16], 0x69
lea ecx, [ebp - 0x18]
mov edx, 8
mov eax, edi
call fcn.00407490
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.00403c94
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0x12], 0x76
mov eax, fcn.0056d19c
mov dword [ebp - 0x10], eax
mov eax, esi
call fcn.00403e5c
mov byte [eax + 1], 0x30
mov eax, 0x56d1cc
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
call fcn.0056b4b8
mov edi, eax
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0xd], 0x74
lea ecx, [ebp - 0x18]
mov edx, 8
mov eax, edi
call fcn.00407490
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.00403c94
mov eax, esi
call fcn.00403e5c
mov byte [eax + 6], 0x20
mov eax, 0x560ac0
mov edx, dword [ebp - 0xc]
push edx
mov cx, word [ebp - 8]
mov edx, dword [ebx + 0x238]
call fcn.0056b598
mov dword [0x5ccc00], 0x3c
mov eax, esi
call fcn.00403e5c
mov byte [eax + 2], 0x20
push 0x40
push 0x1000
mov eax, dword [0x5ccc00]
add eax, 0x10
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [0x5c56b4], eax
mov edx, dword [0x5ccc00]
add edx, 0x10
mov eax, dword [0x5c56b4]
xor ecx, ecx
call fcn.00402b14
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0xe], 0x69
mov eax, 0x56b064
mov ecx, dword [0x5ccc00]
dec ecx
mov edx, dword [0x5c56b4]
call fcn.004027e0
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0x11], 0x20
cmp dword [0x5c56f4], 0
jne 0x56d686
cmp dword [0x5c56f8], 0
jne 0x56d686
call fcn.0056d2b4
mov eax, esi
call fcn.00403e5c
mov byte [eax + 5], 0x79
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56d6b6
lea eax, [ebp - 0x18]
call fcn.00403a10
lea eax, [ebp - 0xc]
call fcn.00403a10
ret