Function at 0x4128a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
push 0x456de3
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.0040c730
lea ebx, [ebp + 0x64]
xor esi, esi
mov ecx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ebx
call fcn.0040c740
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
mov word [ebx + 0x14], si
mov byte [ebx + 0x16], 0
mov eax, 0x45a804
mov ecx, 1
mov dword [ebx + 0xc], eax
cmp word [0x45a804], 0xffff
mov byte [esp + 0x20], cl
je 0x412910
add eax, 4
inc ecx
cmp word [eax], 0xffff
jne 0x412905
lea edi, [ecx*8]
push edi
call fcn.00442bba
mov edx, eax
add esp, 4
cmp edx, esi
mov dword [ebx + 0x10], edx
je 0x41293d
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], 0x45a6c0
call fcn.0040fd10
mov dword [ebp + 0x5c], 0x45a6bc
or eax, 0xffffffff
mov dword [ebp + 0x60], 0x45a7fc
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 0x4129a4
lea eax, [ecx - 0x9c]
jmp 0x4129a6
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.0042c8d0
lea ecx, [ebp + 0xc0]
mov byte [esp + 0x20], 6
call fcn.0042c8d0
lea ecx, [ebp + 0xdc]
mov byte [esp + 0x20], 7
call fcn.0042c8d0
lea ecx, [ebp + 0xfc]
mov byte [esp + 0x20], 8
mov dword [ebp + 0xf8], esi
call fcn.00414540
lea ecx, [ebp + 0x1c4]
mov byte [esp + 0x20], 9
call fcn.00414540
lea ecx, [ebp + 0x28c]
mov byte [esp + 0x20], 0xa
call fcn.00414540
lea ecx, [ebp + 0x354]
mov byte [esp + 0x20], 0xb
call fcn.00416c60
lea ecx, [ebp + 0x3c4]
mov byte [esp + 0x20], 0xc
call fcn.00416c60
lea ecx, [ebp + 0x434]
mov byte [esp + 0x20], 0xd
call fcn.00416c60
mov eax, dword [0x463058]
lea ebx, [ebp + 0x4a4]
mov dword [ebx], eax
mov ecx, dword [0x463058]
mov dword [ebp + 0x4a8], ecx
mov dword [ebp + 0x4b0], esi
mov edx, dword [0x463058]
mov dword [ebp + 0x4b4], edx
mov eax, dword [0x463058]
mov dword [ebp + 0x4b8], eax
lea ecx, [ebp + 0x4c0]
mov byte [esp + 0x20], 0x12
mov dword [ebp + 0x4bc], esi
call fcn.0042c8d0
mov ecx, dword [esp + 0x28]
mov dword [ebp], 0x45a7f0
mov dword [ebp + 0x1c], 0x45a7ec
mov dword [edi], 0x45a7e8
mov dword [ebp + 0x5c], 0x45a7e4
mov dword [ebp + 0x60], 0x45a7dc
mov dword [ebp + 0x4ac], 0xb4
mov eax, dword [ebx]
mov edi, dword [ecx]
mov byte [esp + 0x20], 0x13
cmp eax, edi
je 0x412b7e
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, esi
mov edx, dword [0x46305c]
mov dword [esp + 0x10], ecx
jge 0x412af7
lea ecx, [eax - 0xc]
cmp ecx, edx
jne 0x412afc
mov ecx, dword [esp + 0x10]
cmp dword [edi - 0xc], esi
jge 0x412b45
mov eax, dword [edi - 8]
mov ecx, ebx
push eax
mov dword [esp + 0x2c], eax
call fcn.00407470
test eax, eax
je 0x412b7e
mov ecx, dword [esp + 0x28]
lea eax, [ecx + ecx]
lea edx, [ecx + ecx + 2]
cmp edx, eax
jb 0x412b38
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 0x412b7e
add eax, 0xfffffff4
cmp eax, edx
je 0x412b6c
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x412b65
mov edx, dword [ebx]
sub edx, 0xc
push edx
call fcn.0043733c
add esp, 4
mov eax, dword [0x463058]
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 + 0x4a8]
lea edi, [ebp + 0x4a8]
mov ecx, dword [edx]
cmp eax, ecx
mov dword [esp + 0x28], ecx
je 0x412c33
mov ebx, dword [eax - 0xc]
lea edx, [eax - 0xc]
cmp ebx, esi
jge 0x412bb1
lea ebx, [eax - 0xc]
cmp ebx, dword [0x46305c]
jne 0x412bb6
cmp dword [ecx - 0xc], esi
jge 0x412bf3
mov ebx, dword [ecx - 8]
mov ecx, edi
push ebx
call fcn.00407470
test eax, eax
je 0x412c33
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 0x412c33
mov ecx, dword [0x46305c]
add eax, 0xfffffff4
cmp eax, ecx
je 0x412c21
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x412c19
mov eax, dword [edi]
sub eax, 0xc
push eax
call fcn.0043733c
add esp, 4
mov ecx, dword [0x463058]
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