Function at 0x40add0
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
push 0x44cc83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x14], ebp
call fcn.00407050
lea ebx, [ebp + 0x64]
xor esi, esi
mov ecx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ebx
call fcn.00407100
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
mov word [ebx + 0x14], si
mov byte [ebx + 0x16], 0
mov eax, 0x44f70c
mov ecx, 1
mov dword [ebx + 0xc], eax
cmp word [0x44f70c], 0xffff
mov byte [esp + 0x20], cl
je 0x40ae40
add eax, 4
inc ecx
cmp word [eax], 0xffff
jne 0x40ae35
lea edi, [ecx*8]
push edi
call fcn.00438f1a
mov edx, eax
add esp, 4
cmp edx, esi
mov dword [ebx + 0x10], edx
je 0x40ae6d
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, [ebp + 0x20]
mov byte [esp + 0x20], 2
mov ecx, edi
mov dword [ebp + 0x1c], 0x44f608
call fcn.004081b0
mov dword [ebp + 0x5c], 0x44f604
or eax, 0xffffffff
mov dword [ebp + 0x60], 0x44f704
mov dword [ebp + 0x7c], esi
mov dword [ebp + 0x80], esi
mov dword [ebp + 0x84], esi
mov byte [ebp + 0x98], 0
mov dword [ebp + 0x88], esi
mov dword [ebp + 0x8c], esi
mov dword [ebp + 0x90], eax
mov dword [ebp + 0x94], eax
lea ecx, [ebp + 0x9c]
cmp ecx, esi
je 0x40aed4
lea eax, [ecx - 0x9c]
jmp 0x40aed6
xor eax, eax
push ecx
add eax, 8
push 0x40
push 0xd
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp + 0xa4]
mov byte [esp + 0x20], 5
call fcn.004227e0
lea ecx, [ebp + 0xc0]
mov byte [esp + 0x20], 6
call fcn.004227e0
lea ecx, [ebp + 0xdc]
mov byte [esp + 0x20], 7
call fcn.004227e0
lea ecx, [ebp + 0xfc]
mov byte [esp + 0x20], 8
mov dword [ebp + 0xf8], esi
call fcn.0040cb10
lea ecx, [ebp + 0x1bc]
mov byte [esp + 0x20], 9
call fcn.0040cb10
lea ecx, [ebp + 0x27c]
mov byte [esp + 0x20], 0xa
call fcn.0040cb10
lea ecx, [ebp + 0x33c]
mov byte [esp + 0x20], 0xb
call fcn.0040f190
lea ecx, [ebp + 0x3ac]
mov byte [esp + 0x20], 0xc
call fcn.0040f190
lea ecx, [ebp + 0x41c]
mov byte [esp + 0x20], 0xd
call fcn.0040f190
mov eax, dword [0x457050]
lea ebx, [ebp + 0x48c]
mov dword [ebx], eax
mov ecx, dword [0x457050]
mov dword [ebp + 0x490], ecx
mov dword [ebp + 0x498], esi
mov edx, dword [0x457050]
mov dword [ebp + 0x49c], edx
mov eax, dword [0x457050]
mov dword [ebp + 0x4a0], eax
lea ecx, [ebp + 0x4a8]
mov byte [esp + 0x20], 0x12
mov dword [ebp + 0x4a4], esi
call fcn.004227e0
mov ecx, dword [esp + 0x28]
mov dword [ebp], 0x44f6f8
mov dword [ebp + 0x1c], 0x44f6f4
mov dword [edi], 0x44f6f0
mov dword [ebp + 0x5c], 0x44f6ec
mov dword [ebp + 0x60], 0x44f6e4
mov dword [ebp + 0x494], 0xb4
mov eax, dword [ebx]
mov edi, dword [ecx]
mov byte [esp + 0x20], 0x13
cmp eax, edi
je 0x40b0ae
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, esi
mov edx, dword [0x457054]
mov dword [esp + 0x10], ecx
jge 0x40b027
lea ecx, [eax - 0xc]
cmp ecx, edx
jne 0x40b02c
mov ecx, dword [esp + 0x10]
cmp dword [edi - 0xc], esi
jge 0x40b075
mov eax, dword [edi - 8]
mov ecx, ebx
push eax
mov dword [esp + 0x2c], eax
call fcn.0040ca70
test eax, eax
je 0x40b0ae
mov ecx, dword [esp + 0x28]
lea eax, [ecx + ecx]
lea edx, [ecx + ecx + 2]
cmp edx, eax
jb 0x40b068
mov ecx, eax
mov esi, edi
mov edi, dword [ebx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
xor esi, esi
mov edx, dword [ebx]
mov dword [edx - 8], ecx
mov ecx, dword [ebx]
mov word [ecx + eax], si
jmp 0x40b0ae
add eax, 0xfffffff4
cmp eax, edx
je 0x40b09c
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40b095
mov edx, dword [ebx]
sub edx, 0xc
push edx
call fcn.0042d34c
add esp, 4
mov eax, dword [0x457050]
mov dword [ebx], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov dword [ebx], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x490]
lea edi, [ebp + 0x490]
mov ecx, dword [edx]
cmp eax, ecx
mov dword [esp + 0x28], ecx
je 0x40b163
mov ebx, dword [eax - 0xc]
lea edx, [eax - 0xc]
cmp ebx, esi
jge 0x40b0e1
lea ebx, [eax - 0xc]
cmp ebx, dword [0x457054]
jne 0x40b0e6
cmp dword [ecx - 0xc], esi
jge 0x40b123
mov ebx, dword [ecx - 8]
mov ecx, edi
push ebx
call fcn.0040ca70
test eax, eax
je 0x40b163
mov edx, dword [edi]
lea eax, [ebx + ebx]
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [ebx + ebx + 2]
push eax
push ecx
push edx
call fcn.00402e60
mov eax, dword [edi]
mov edx, dword [esp + 0x3c]
add esp, 0x10
mov dword [eax - 8], ebx
mov ecx, dword [edi]
mov word [ecx + edx], si
jmp 0x40b163
mov ecx, dword [0x457054]
add eax, 0xfffffff4
cmp eax, ecx
je 0x40b151
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40b149
mov eax, dword [edi]
sub eax, 0xc
push eax
call fcn.0042d34c
add esp, 4
mov ecx, dword [0x457050]
mov dword [edi], ecx
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
mov dword [edi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x18]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8