Function at 0x419840
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
push 0x44b0c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x14], ebp
call fcn.004133e0
lea ebx, [ebp + 0x64]
xor esi, esi
mov ecx, ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], ebx
call fcn.00418030
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
mov word [ebx + 0x14], si
mov byte [ebx + 0x16], 0
mov eax, 0x44d870
mov ecx, 1
mov dword [ebx + 0xc], eax
cmp word [0x44d870], 0xffff
mov byte [esp + 0x24], cl
je 0x4198b0
add eax, 4
inc ecx
cmp word [eax], 0xffff
jne 0x4198a5
shl ecx, 3
push ecx
mov dword [esp + 0x14], ecx
call fcn.0043649a
mov edi, eax
add esp, 4
cmp edi, esi
mov dword [ebx + 0x10], edi
je 0x4198dd
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, ecx
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 + 0x24], 2
mov ecx, edi
mov dword [ebp + 0x1c], 0x44d820
call fcn.004240c0
mov dword [ebp + 0x5c], 0x44d81c
or eax, 0xffffffff
mov dword [ebp + 0x60], 0x44d868
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 0x419944
lea eax, [ecx - 0x9c]
jmp 0x419946
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 + 0x24], 5
call fcn.0040f320
lea ecx, [ebp + 0xc0]
mov byte [esp + 0x24], 6
call fcn.0040f320
lea ecx, [ebp + 0xdc]
mov byte [esp + 0x24], 7
call fcn.0040f320
lea ecx, [ebp + 0xfc]
mov byte [esp + 0x24], 8
call fcn.0041cd40
lea ecx, [ebp + 0x1b0]
mov byte [esp + 0x24], 9
call fcn.0041cd40
lea ecx, [ebp + 0x264]
mov byte [esp + 0x24], 0xa
call fcn.0041cd40
lea ecx, [ebp + 0x318]
mov byte [esp + 0x24], 0xb
call fcn.0041ed50
lea ecx, [ebp + 0x388]
mov byte [esp + 0x24], 0xc
call fcn.0041ed50
lea ecx, [ebp + 0x3f8]
mov byte [esp + 0x24], 0xd
call fcn.0041ed50
mov eax, dword [0x455050]
lea ebx, [ebp + 0x468]
mov dword [ebx], eax
mov ecx, dword [0x455050]
mov dword [ebp + 0x46c], ecx
mov edx, dword [0x455050]
mov dword [ebp + 0x478], edx
mov eax, dword [0x455050]
mov dword [ebp + 0x47c], eax
mov ecx, dword [esp + 0x2c]
mov dword [ebp], 0x44d85c
mov dword [ebp + 0x1c], 0x44d858
mov dword [edi], 0x44d854
mov dword [ebp + 0x5c], 0x44d850
mov dword [ebp + 0x60], 0x44d848
mov dword [ebp + 0x474], esi
mov dword [ebp + 0x470], 0xb4
mov eax, dword [ebx]
mov edi, dword [ecx]
cmp eax, edi
mov byte [esp + 0x24], 0x12
je 0x419b02
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, esi
mov edx, dword [0x455054]
mov dword [esp + 0x10], ecx
jge 0x419a7b
lea ecx, [eax - 0xc]
cmp ecx, edx
jne 0x419a80
mov ecx, dword [esp + 0x10]
cmp dword [edi - 0xc], esi
jge 0x419ac9
mov eax, dword [edi - 8]
mov ecx, ebx
push eax
mov dword [esp + 0x30], eax
call fcn.0040ac40
test eax, eax
je 0x419b02
mov ecx, dword [esp + 0x2c]
lea eax, [ecx + ecx]
lea edx, [ecx + ecx + 2]
cmp edx, eax
jb 0x419abc
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 + 0x2c]
xor esi, esi
mov edx, dword [ebx]
mov dword [edx - 8], ecx
mov ecx, dword [ebx]
mov word [ecx + eax], si
jmp 0x419b02
add eax, 0xfffffff4
cmp eax, edx
je 0x419af0
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x419ae9
mov edx, dword [ebx]
sub edx, 0xc
push edx
call fcn.0042ac06
add esp, 4
mov eax, dword [0x455050]
mov dword [ebx], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov dword [ebx], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebx, dword [esp + 0x30]
mov ecx, dword [ebp + 0x46c]
lea edi, [ebp + 0x46c]
mov eax, dword [ebx]
cmp ecx, eax
mov dword [esp + 0x2c], eax
je 0x419b7f
cmp dword [ecx - 0xc], esi
jge 0x419b2e
mov edx, dword [0x455054]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x419b33
cmp dword [eax - 0xc], esi
jge 0x419b6a
mov ebx, dword [eax - 8]
mov ecx, edi
push ebx
call fcn.0040ac40
test eax, eax
je 0x419b7f
mov edx, dword [esp + 0x2c]
mov ecx, dword [edi]
lea esi, [ebx + ebx]
lea eax, [ebx + ebx + 2]
push esi
push edx
push eax
push ecx
call fcn.004017c0
mov edx, dword [edi]
add esp, 0x10
mov dword [edx - 8], ebx
mov eax, dword [edi]
mov word [eax + esi], 0
jmp 0x419b7f
mov ecx, edi
call fcn.00401880
mov eax, dword [ebx]
mov dword [edi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8