Function at 0x40adc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
push 0x44d0c3
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.00407040
lea ebx, [ebp + 0x64]
xor esi, esi
mov ecx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ebx
call fcn.004070f0
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
mov word [ebx + 0x14], si
mov byte [ebx + 0x16], 0
mov eax, 0x450734
mov ecx, 1
mov dword [ebx + 0xc], eax
cmp word [0x450734], 0xffff
mov byte [esp + 0x20], cl
je 0x40ae30
add eax, 4
inc ecx
cmp word [eax], 0xffff
jne 0x40ae25
lea edi, [ecx*8]
push edi
call fcn.0043936a
mov edx, eax
add esp, 4
cmp edx, esi
mov dword [ebx + 0x10], edx
je 0x40ae5d
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], 0x450608
call fcn.004081a0
mov dword [ebp + 0x5c], 0x450604
or eax, 0xffffffff
mov dword [ebp + 0x60], 0x45072c
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 0x40aec4
lea eax, [ecx - 0x9c]
jmp 0x40aec6
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.00422c80
lea ecx, [ebp + 0xc0]
mov byte [esp + 0x20], 6
call fcn.00422c80
lea ecx, [ebp + 0xdc]
mov byte [esp + 0x20], 7
call fcn.00422c80
lea ecx, [ebp + 0xfc]
mov byte [esp + 0x20], 8
mov dword [ebp + 0xf8], esi
call fcn.0040cb00
lea ecx, [ebp + 0x1bc]
mov byte [esp + 0x20], 9
call fcn.0040cb00
lea ecx, [ebp + 0x27c]
mov byte [esp + 0x20], 0xa
call fcn.0040cb00
lea ecx, [ebp + 0x33c]
mov byte [esp + 0x20], 0xb
call fcn.0040f180
lea ecx, [ebp + 0x3ac]
mov byte [esp + 0x20], 0xc
call fcn.0040f180
lea ecx, [ebp + 0x41c]
mov byte [esp + 0x20], 0xd
call fcn.0040f180
mov eax, dword [0x458050]
lea ebx, [ebp + 0x48c]
mov dword [ebx], eax
mov ecx, dword [0x458050]
mov dword [ebp + 0x490], ecx
mov dword [ebp + 0x498], esi
mov edx, dword [0x458050]
mov dword [ebp + 0x49c], edx
mov eax, dword [0x458050]
mov dword [ebp + 0x4a0], eax
lea ecx, [ebp + 0x4a8]
mov byte [esp + 0x20], 0x12
mov dword [ebp + 0x4a4], esi
call fcn.00422c80
mov ecx, dword [esp + 0x28]
mov dword [ebp], 0x450720
mov dword [ebp + 0x1c], 0x45071c
mov dword [edi], 0x450718
mov dword [ebp + 0x5c], 0x450714
mov dword [ebp + 0x60], 0x45070c
mov dword [ebp + 0x494], 0xb4
mov eax, dword [ebx]
mov edi, dword [ecx]
mov byte [esp + 0x20], 0x13
cmp eax, edi
je 0x40b09e
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, esi
mov edx, dword [0x458054]
mov dword [esp + 0x10], ecx
jge 0x40b017
lea ecx, [eax - 0xc]
cmp ecx, edx
jne 0x40b01c
mov ecx, dword [esp + 0x10]
cmp dword [edi - 0xc], esi
jge 0x40b065
mov eax, dword [edi - 8]
mov ecx, ebx
push eax
mov dword [esp + 0x2c], eax
call fcn.0040ca60
test eax, eax
je 0x40b09e
mov ecx, dword [esp + 0x28]
lea eax, [ecx + ecx]
lea edx, [ecx + ecx + 2]
cmp edx, eax
jb 0x40b058
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 0x40b09e
add eax, 0xfffffff4
cmp eax, edx
je 0x40b08c
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40b085
mov edx, dword [ebx]
sub edx, 0xc
push edx
call fcn.0042d78e
add esp, 4
mov eax, dword [0x458050]
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 0x40b153
mov ebx, dword [eax - 0xc]
lea edx, [eax - 0xc]
cmp ebx, esi
jge 0x40b0d1
lea ebx, [eax - 0xc]
cmp ebx, dword [0x458054]
jne 0x40b0d6
cmp dword [ecx - 0xc], esi
jge 0x40b113
mov ebx, dword [ecx - 8]
mov ecx, edi
push ebx
call fcn.0040ca60
test eax, eax
je 0x40b153
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.00402e50
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 0x40b153
mov ecx, dword [0x458054]
add eax, 0xfffffff4
cmp eax, ecx
je 0x40b141
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40b139
mov eax, dword [edi]
sub eax, 0xc
push eax
call fcn.0042d78e
add esp, 4
mov ecx, dword [0x458050]
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