Function at 0x56dfe0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.00403e40
xor eax, eax
push ebp
push 0x56e3e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp - 1]
mov byte [ebx + 0x24], al
lea eax, [ebx + 0x22c]
mov edx, dword [ebp - 8]
call fcn.00403a64
mov al, byte [ebp + 8]
mov byte [ebx + 0x27c], al
pushal
mov esi, 0x5bd4b4
mov esi, dword [esi]
mov edi, 0x5bd4b8
mov eax, 0x53a1e394
mov ebx, dword [esi]
xor ebx, eax
mov dword [edi], ebx
mov eax, 0xa37e9315
mov ebx, dword [esi + 4]
xor ebx, eax
mov dword [edi + 4], ebx
mov eax, 0x493db437
mov ebx, dword [esi + 8]
xor ebx, eax
mov dword [edi + 8], ebx
popal
lea eax, [ebx + 0x230]
mov edx, 0x5bd4b8
mov ecx, 0xd
call fcn.00403c3c
mov dl, 1
mov eax, dword [0x40d104]
call fcn.00402e3c
mov esi, eax
mov dword [ebx + 0x234], esi
mov eax, esi
call fcn.00410c60
mov edx, 0x330
mov eax, dword [ebx + 0x238]
call fcn.005669d8
mov dword [ebx + 0x260], eax
mov eax, 0x55c324
mov edx, 0x41f
call fcn.005669d8
mov dword [ebx + 0x264], eax
mov eax, 0x55c754
mov edx, 0xec
call fcn.005669d8
mov dword [ebx + 0x268], eax
lea ecx, [ebp - 0x1c]
mov edx, 8
mov eax, dword [ebx + 0x260]
call fcn.0040746c
push dword [ebp - 0x1c]
push 0x56e3fc
lea ecx, [ebp - 0x20]
mov edx, 8
mov eax, dword [ebx + 0x264]
call fcn.0040746c
push dword [ebp - 0x20]
push 0x56e408
lea ecx, [ebp - 0x24]
mov edx, 8
mov eax, dword [ebx + 0x268]
call fcn.0040746c
push dword [ebp - 0x24]
push 0x56e414
lea eax, [ebp - 0xc]
mov edx, 6
call fcn.00403d4c
mov esi, 0x59
push 0x40
push 0x1000
lea edi, [esi + 0x10]
push edi
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebx + 0x248], eax
mov dword [ebx + 0x258], edi
mov edx, edi
mov eax, dword [ebx + 0x248]
xor ecx, ecx
call fcn.00402b14
mov eax, dword [ebp - 0xc]
push eax
mov eax, 0x55c854
mov ecx, esi
mov edx, dword [ebx + 0x248]
call fcn.00566ab8
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x248]
call fcn.00407cec
mov eax, dword [ebp - 0xc]
call fcn.00403c8c
add eax, dword [ebx + 0x248]
inc eax
mov edx, dword [eax]
mov dword [ebp - 0x10], edx
add eax, 4
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
add eax, 4
mov edx, dword [eax]
mov dword [ebp - 0x18], edx
add eax, 4
mov eax, dword [eax]
mov dword [ebx + 0x278], eax
mov edi, 0x56685c
mov esi, 0x179
push 0x40
push 0x1000
lea eax, [esi + 0x10]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [0x5bd54c], eax
lea edx, [esi + 0x10]
mov eax, dword [0x5bd54c]
xor ecx, ecx
call fcn.00402b14
mov eax, dword [ebp - 0xc]
push eax
mov ecx, esi
mov edx, dword [0x5bd54c]
mov eax, edi
call fcn.00566ab8
mov edi, dword [ebx + 0x238]
mov esi, 0x340
push 0x40
push 0x1000
lea eax, [esi + 0x10]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebx + 0x23c], eax
lea eax, [esi + 0x10]
mov dword [ebx + 0x24c], eax
lea edx, [esi + 0x10]
mov eax, dword [ebx + 0x23c]
xor ecx, ecx
call fcn.00402b14
mov eax, dword [ebp - 0xc]
push eax
mov ecx, esi
mov edx, dword [ebx + 0x23c]
mov eax, edi
call fcn.00566ab8
mov edx, esi
sub edx, 0x10
mov eax, dword [ebx + 0x23c]
call fcn.005669d8
mov dword [ebx + 0x26c], eax
mov edi, 0x55c324
mov esi, 0x42f
push 0x40
push 0x1000
lea eax, [esi + 0x10]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebx + 0x240], eax
lea eax, [esi + 0x10]
mov dword [ebx + 0x250], eax
lea edx, [esi + 0x10]
mov eax, dword [ebx + 0x240]
xor ecx, ecx
call fcn.00402b14
mov eax, dword [ebp - 0xc]
push eax
mov ecx, esi
mov edx, dword [ebx + 0x240]
mov eax, edi
call fcn.00566ab8
mov edx, esi
sub edx, 0x10
mov eax, dword [ebx + 0x240]
call fcn.005669d8
mov dword [ebx + 0x270], eax
mov edi, 0x55c754
mov esi, 0xfc
push 0x40
push 0x1000
lea eax, [esi + 0x10]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebx + 0x244], eax
lea eax, [esi + 0x10]
mov dword [ebx + 0x254], eax
lea edx, [esi + 0x10]
mov eax, dword [ebx + 0x244]
xor ecx, ecx
call fcn.00402b14
mov eax, dword [ebp - 0xc]
push eax
mov ecx, esi
mov edx, dword [ebx + 0x244]
mov eax, edi
call fcn.00566ab8
mov edx, esi
sub edx, 0x10
mov eax, dword [ebx + 0x244]
call fcn.005669d8
mov dword [ebx + 0x274], eax
mov eax, dword [ebx + 0x26c]
cmp eax, dword [ebp - 0x10]
jne 0x56e34d
mov eax, dword [ebx + 0x270]
cmp eax, dword [ebp - 0x14]
jne 0x56e34d
mov eax, dword [ebx + 0x274]
cmp eax, dword [ebp - 0x18]
jne 0x56e34d
xor eax, eax
jmp 0x56e34f
mov al, 1
mov byte [ebx + 0x25c], al
mov eax, dword [ebp - 0xc]
push eax
mov eax, 0x566584
mov cx, word [0x5c4cd0]
mov edx, dword [0x5bd548]
call fcn.00566ab8
mov eax, dword [ebp - 0xc]
push eax
mov eax, 0x5665c0
mov cx, word [0x5bd590]
mov edx, dword [0x5bd588]
call fcn.00566ab8
mov eax, dword [ebp - 0xc]
push eax
mov eax, 0x566630
mov cx, word [0x5bd594]
mov edx, dword [0x5bd58c]
call fcn.00566ab8
push eax
push esi
mov eax, 0x5bd588
mov eax, dword [eax]
mov esi, 0x5c4f88
add eax, 0x46
mov dword [eax], esi
pop esi
pop eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56e3ea
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00403a34
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403a34
ret