Function at 0x418e10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x44e310]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
mov eax, ecx
mov ebx, edx
push esi
xor esi, esi
mov dword [esp + 0x20], eax
push edi
mov edi, dword [eax]
cmp dword [0x475da8], esi
jne 0x418e69
push 0x47a9c0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x100
push esi
push 0x47a8c0
call fcn.0042e710
add esp, 0xc
mov dword [0x475da8], 1
push 0x47a9c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
call fcn.004188c0
mov edi, eax
mov ecx, ebx
mov dword [esp + 0x20], edi
call fcn.004188c0
mov ebx, eax
xorps xmm0, xmm0
push 0x50
lea eax, [esp + 0x34]
mov dword [esp + 0x20], ebx
push 0
push eax
movlpd qword [esp + 0x34], xmm0
call fcn.0042e710
add esp, 0xc
lea eax, [esp + 0x28]
mov ecx, edi
push eax
call fcn.00418d50
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, 5
jb 0x419148
mov edx, eax
mov ecx, edi
call fcn.00418bb0
push dword [esp + 0x34]
mov ecx, edi
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.00418900
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419143
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x88]
mov dword [esp + 0x14], eax
push ecx
push 0x40
push dword [esp + 0x18]
mov dword [esp + 0x94], 0
push edi
push eax
mov dword [esp + 0x98], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x4190ff
lea eax, [esp + 0x84]
push eax
push 0x40
push 0x6c
push esi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x4190d4
mov eax, dword [esp + 0x10]
lea edx, [esi + 0x2c]
xor ecx, ecx
test eax, eax
je 0x418f8e
mov ebx, dword [esp + 0x10]
lea eax, [esi + 0x2c]
mov dword [esp + 0x18], edi
sub edi, eax
jmp 0x418f70
mov al, byte [edi + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
mov byte [esi + ecx + 0x4c], al
inc ecx
cmp ecx, ebx
jb 0x418f70
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
lea edx, [eax + edi]
lea ecx, [esi + eax]
lea eax, [ecx + 0x31]
mov dword [esp + 0x1c], eax
cmp eax, edx
jbe 0x418fa3
sub eax, edx
jmp 0x418fa9
mov eax, edx
sub eax, dword [esp + 0x1c]
cmp eax, 0x7fff0000
ja 0x418fbe
lea eax, [ecx + 0x31]
mov byte [ecx + 0x2c], 0xe9
sub edx, eax
mov dword [ecx + 0x2d], edx
jmp 0x418fcc
lea eax, [ecx + 0x32]
mov word [ecx + 0x2c], 0x25ff
mov dword [ecx + 0x2e], eax
mov dword [eax], edx
cmp ebx, edi
jae 0x418fd6
mov eax, edi
sub eax, ebx
jmp 0x418fda
mov eax, ebx
sub eax, edi
cmp eax, 0x7fff0000
jbe 0x41906e
lea edx, [esi + 0xc]
mov ecx, edx
lea eax, [ecx + 5]
mov dword [esp + 0x18], eax
cmp eax, ebx
jbe 0x418ff9
sub eax, ebx
jmp 0x418fff
mov eax, ebx
sub eax, dword [esp + 0x18]
cmp eax, 0x7fff0000
ja 0x419017
mov eax, ebx
mov byte [ecx], 0xe9
sub eax, dword [esp + 0x18]
mov dword [ecx + 1], eax
add ecx, 5
jmp 0x419029
mov word [ecx], 0x25ff
lea eax, [ecx + 6]
mov dword [ecx + 2], eax
mov ecx, eax
mov dword [ecx], ebx
add ecx, 4
sub ecx, esi
sub ecx, 0xc
push ecx
push edx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea edx, [edi + 5]
lea ecx, [esi + 0xc]
cmp edx, ecx
jbe 0x41904a
mov eax, edx
sub eax, ecx
jmp 0x41904e
mov eax, ecx
sub eax, edx
cmp eax, 0x7fff0000
ja 0x41905f
sub ecx, edx
mov byte [edi], 0xe9
mov dword [edi + 1], ecx
jmp 0x41909f
lea eax, [edi + 6]
mov word [edi], 0x25ff
mov dword [edi + 2], eax
mov dword [eax], ecx
jmp 0x41909f
lea ecx, [edi + 5]
cmp ecx, ebx
jbe 0x41907b
mov eax, ecx
sub eax, ebx
jmp 0x41907f
mov eax, ebx
sub eax, ecx
cmp eax, 0x7fff0000
ja 0x419092
mov eax, ebx
mov byte [edi], 0xe9
sub eax, ecx
mov dword [edi + 1], eax
jmp 0x41909f
lea eax, [edi + 6]
mov word [edi], 0x25ff
mov dword [edi + 2], eax
mov dword [eax], ebx
mov eax, dword [esp + 0x10]
push eax
mov dword [esi + 4], eax
lea eax, [esi + 0x2c]
mov dword [esi + 8], ebx
mov ebx, dword [esp + 0x18]
push eax
push ebx
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x84]
push eax
push dword [esp + 0x88]
push 0x6c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ebx, dword [esp + 0x10]
push ebx
push edi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x8c]
push ebx
push edi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [esi], 0
je 0x41910f
mov ecx, dword [esp + 0x24]
lea eax, [esi + 0x2c]
mov dword [ecx], eax
jmp 0x419143
xor eax, eax
cmp dword [eax*4 + 0x47a8c0], esi
je 0x419122
inc eax
cmp eax, 0x40
jb 0x419111
jmp 0x419141
push 0x8000
push 0
push esi
mov dword [eax*4 + 0x47a8c0], 0
call dword [sym.imp.KERNEL32.dll_VirtualFree]
dec dword [0x475da4]
xor esi, esi
call fcn.00418b20
push 0x47a9c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x8c]
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.00429eaf
mov esp, ebp
pop ebp
ret