Function at 0x4040d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
push 0x44c942
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.00407040
lea ebp, [esi + 0x64]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebp
call fcn.004070f0
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov word [ebp + 0x14], bx
mov byte [ebp + 0x16], bl
mov eax, 0x45060c
mov ecx, 1
mov dword [ebp + 0xc], eax
cmp word [0x45060c], 0xffff
mov byte [esp + 0x24], cl
je 0x40413f
add eax, 4
inc ecx
cmp word [eax], 0xffff
jne 0x404134
lea edi, [ecx*8]
push edi
call fcn.0043936a
mov edx, eax
add esp, 4
cmp edx, ebx
mov dword [ebp + 0x10], edx
je 0x40416c
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea edi, [esi + 0x20]
mov byte [esp + 0x24], 2
mov ecx, edi
mov dword [esi + 0x1c], 0x450608
call fcn.004081a0
mov dword [esi + 0x5c], 0x450604
or eax, 0xffffffff
mov dword [esi + 0x60], 0x4505b8
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov byte [esi + 0x98], bl
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
lea eax, [esi + 0x9c]
cmp eax, ebx
je 0x4041d2
lea ecx, [eax - 0x9c]
jmp 0x4041d4
xor ecx, ecx
push eax
add ecx, 8
push 0x40
push 0xd
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [esp + 0x13]
mov dword [esi + 0xac], ebx
mov byte [esi + 0xa8], al
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
push 0x598
mov byte [esp + 0x28], 6
call fcn.0043936a
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x24], 7
je 0x404227
mov ecx, eax
call fcn.0041d5d0
jmp 0x404229
xor eax, eax
mov dword [esi + 0xb8], eax
push 0x530
mov byte [esp + 0x28], 8
call fcn.0043936a
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x24], 9
je 0x404257
mov ecx, eax
call fcn.00411600
jmp 0x404259
xor eax, eax
mov dword [esi + 0xbc], eax
push 0x420
mov byte [esp + 0x28], 0xa
call fcn.0043936a
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x24], 0xb
je 0x404287
mov ecx, eax
call fcn.004181c0
jmp 0x404289
xor eax, eax
mov dword [esi + 0xc0], eax
push 0x58c
mov byte [esp + 0x28], 0xc
call fcn.0043936a
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x24], 0xd
je 0x4042b7
mov ecx, eax
call fcn.004153a0
jmp 0x4042b9
xor eax, eax
mov dword [esi + 0xc4], eax
push 0x160
mov byte [esp + 0x28], 0xe
call fcn.0043936a
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x24], 0xf
je 0x4042e7
mov ecx, eax
call fcn.0041bff0
jmp 0x4042e9
xor eax, eax
mov dword [esi + 0xc8], eax
lea ecx, [esi + 0xd0]
mov byte [esp + 0x24], 0x10
mov dword [esi + 0xcc], ebx
call fcn.00424c80
lea ecx, [esi + 0x12c]
mov byte [esp + 0x24], 0x11
call fcn.0040cb00
lea ecx, [esi + 0x1ec]
mov byte [esp + 0x24], 0x12
call fcn.0040cb00
lea ecx, [esi + 0x65c]
mov byte [esp + 0x24], 0x13
call fcn.00429120
lea ecx, [esi + 0x68c]
mov byte [esp + 0x24], 0x14
mov dword [esi + 0x670], ebx
mov dword [esi + 0x680], ebx
mov dword [esi + 0x688], ebx
call fcn.00422c80
mov dword [edi], 0x4505b4
mov ecx, 0xea
xor eax, eax
lea edi, [esi + 0x2b0]
mov dword [esi], 0x4505a8
mov dword [esi + 0x1c], 0x4505a4
mov dword [esi + 0x5c], 0x4505a0
mov dword [esi + 0x60], 0x450554
mov dword [esi + 0x2ac], ebx
mov dword [esi + 0x124], 0x5003
mov dword [esi + 0x128], 0x3000
mov dword [esi + 0x658], ebx
mov dword [esi + 0x674], ebx
mov dword [esi + 0x678], ebx
mov dword [esi + 0x684], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret