Function at 0x4756a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x1e
mov eax, 0x9c78
mov word [ebp - 8], ax
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp + 0xc]
ja 0x4758d7
push 0xc
push 0
lea edx, [ebp - 0x40]
push edx
call fcn.004067d0
add esp, 0xc
push 0x1e
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00405d00
add esp, 0xc
mov edx, dword [ebp - 0x30]
add edx, 0x1e
mov dword [ebp - 0x30], edx
movzx eax, word [ebp - 0x12]
test eax, eax
jg 0x47570b
jmp 0x4758d7
push 0x40
push 0x3000
movzx ecx, word [ebp - 0x12]
add ecx, 1
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x40], eax
movzx edx, word [ebp - 0x12]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x40]
push eax
call fcn.004067d0
add esp, 0xc
movzx ecx, word [ebp - 0x12]
push ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.00405d00
add esp, 0xc
movzx ecx, word [ebp - 0x12]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x40]
movsx eax, byte [edx]
cmp eax, 0x24
jne 0x47576d
jmp 0x4758d7
movzx ecx, word [ebp - 0x10]
test ecx, ecx
jle 0x47577f
movzx edx, word [ebp - 0x10]
add edx, dword [ebp - 0x30]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x1a], 0
jne 0x47579b
push 0x8000
push 0
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4758d2
mov ecx, dword [ebp - 0x1a]
cmp ecx, dword [ebp - 0x16]
jne 0x475808
push 0x40
push 0x3000
mov edx, dword [ebp - 0x1a]
add edx, 1
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1a]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.004067d0
add esp, 0xc
mov edx, dword [ebp - 0x1a]
push edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00405d00
add esp, 0xc
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x1a]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x1a]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00404000
jmp 0x4758d2
push 0x40
push 0x3000
mov edx, dword [ebp - 0x16]
add edx, 1
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x16]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.004067d0
add esp, 0xc
push 0x40
push 0x3000
mov edx, dword [ebp - 0x1a]
add edx, 3
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1a]
add eax, 3
push eax
push 0
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.004067d0
add esp, 0xc
push 2
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.00405d00
add esp, 0xc
mov ecx, dword [ebp - 0x1a]
push ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x44]
add eax, 2
push eax
call fcn.00405d00
add esp, 0xc
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x1a]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x16]
push edx
call fcn.0045f170
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x16]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00478050
add esp, 0x10
mov ecx, dword [ebp - 0x16]
mov dword [ebp - 0x38], ecx
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00404000
jmp 0x4756c4
mov ecx, dword [ebp + 0x10]
call fcn.00403fe0
mov esp, ebp
pop ebp
ret