Function at 0x568880
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 0x56889d
add esp, 0xfffffff0
call fcn.004030f4
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, 0x5bd4d8
xor eax, eax
push ebp
push 0x568bcf
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.00414768
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 [0x5bd54c], 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 [0x5c4d38], eax
xor eax, eax
mov dword [ebx + 0x238], eax
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0xc], 0x61
mov eax, dword [0x5be258]
mov eax, dword [eax]
call fcn.00523d4c
mov eax, esi
call fcn.00403e5c
mov byte [eax + 3], 0x64
mov dword [0x5bd574], 0xf455ff
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0xb], 0x75
mov dword [0x5bd578], 0x4d3412
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0x17], 0x6f
mov dword [0x5bd57c], 0xa502f3bc
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0xa], 0x6c
mov dword [0x5bd580], 0x4d3412
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0x14], 0x72
mov dword [0x5bd584], 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 [0x5be258]
mov eax, dword [eax]
call fcn.00523d58
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
call fcn.005669d8
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.0040746c
mov eax, fcn.005498b0
mov dword [ebp - 0x10], eax
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0x15], 0x73
mov eax, 0x54bfdc
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
call fcn.005669d8
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.0040746c
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.005686bc
mov dword [ebp - 0x10], eax
mov eax, esi
call fcn.00403e5c
mov byte [eax + 1], 0x30
mov eax, 0x5686ec
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
call fcn.005669d8
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.0040746c
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, 0x55bfe0
mov edx, dword [ebp - 0xc]
push edx
mov cx, word [ebp - 8]
mov edx, dword [ebx + 0x238]
call fcn.00566ab8
mov dword [0x5c4cd0], 0x3c
mov eax, esi
call fcn.00403e5c
mov byte [eax + 2], 0x20
push 0x40
push 0x1000
mov eax, dword [0x5c4cd0]
add eax, 0x10
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [0x5bd548], eax
mov edx, dword [0x5c4cd0]
add edx, 0x10
mov eax, dword [0x5bd548]
xor ecx, ecx
call fcn.00402b14
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0xe], 0x69
mov eax, 0x566584
mov ecx, dword [0x5c4cd0]
dec ecx
mov edx, dword [0x5bd548]
call fcn.004027e0
mov eax, esi
call fcn.00403e5c
mov byte [eax + 0x11], 0x20
cmp dword [0x5bd588], 0
jne 0x568ba6
cmp dword [0x5bd58c], 0
jne 0x568ba6
call fcn.005687d4
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 0x568bd6
lea eax, [ebp - 0x18]
call fcn.00403a10
lea eax, [ebp - 0xc]
call fcn.00403a10
ret