Function at 0x418130
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
push 0x44db52
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x20], ebp
call fcn.00407050
xor esi, esi
lea ecx, [ebp + 0x78]
mov dword [esp + 0x22c], esi
call fcn.0041ad20
lea edi, [ebp + 0x1c]
mov byte [esp + 0x22c], 1
mov ecx, edi
call fcn.0041ba60
mov dword [ebp], 0x44f910
mov dword [edi], 0x44f904
mov dword [ebp + 0x58], 0x44f8dc
lea ecx, [ebp + 0x98]
mov dword [esp + 0x22c], 2
cmp ecx, esi
je 0x4181ae
lea eax, [ecx - 0x98]
jmp 0x4181b0
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 + 0x22c], 3
call fcn.0040cb10
lea ecx, [ebp + 0x164]
mov byte [esp + 0x22c], 4
call fcn.0040cb10
lea ecx, [ebp + 0x224]
mov byte [esp + 0x22c], 5
call fcn.0040e4e0
lea ecx, [ebp + 0x2f0]
mov byte [esp + 0x22c], 6
call fcn.004247b0
lea ecx, [ebp + 0x344]
mov byte [esp + 0x22c], 7
call fcn.00423e40
mov eax, dword [0x457050]
lea ebx, [ebp + 0x38c]
mov dword [ebx], eax
lea ecx, [ebp + 0x3a8]
mov byte [esp + 0x22c], 9
call fcn.004227e0
lea ecx, [ebp + 0x3c4]
mov byte [esp + 0x22c], 0xa
call fcn.004227e0
mov ecx, dword [0x457050]
mov dword [ebp + 0x3e0], ecx
lea ecx, [ebp + 0x3e4]
mov byte [esp + 0x22c], 0xc
call fcn.0040f930
mov dword [ebp], 0x44f8d0
mov dword [edi], 0x44f8c4
mov dword [ebp + 0x58], 0x44f89c
mov dword [ebp + 0x394], esi
mov dword [ebp + 0x390], esi
mov dword [ebp + 0x398], esi
mov dword [ebp + 0x74], 2
mov dword [ebp + 0xa0], 0x14
mov dword [ebp + 0x374], esi
mov dword [ebp + 0x378], esi
mov dword [ebp + 0x37c], esi
mov dword [ebp + 0x380], esi
mov dword [ebp + 0x384], esi
mov dword [ebp + 0x388], 1
mov dword [ebp + 0x39c], 0x3f800000
mov edx, dword [0x45d3d0]
lea ecx, [esp + 0x24]
push 0x100
mov eax, dword [edx + 8]
push ecx
push 0xa3
push eax
mov byte [esp + 0x23c], 0xd
call dword [sym.imp.USER32.dll_LoadStringW]
cmp eax, esi
jne 0x418309
mov word [esp + 0x24], si
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x418387
lea eax, [esp + 0x24]
test eax, eax
jne 0x418321
xor edi, edi
jmp 0x41832e
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040ca70
test eax, eax
je 0x418366
mov ecx, dword [ebx]
lea eax, [edi + edi]
mov dword [esp + 0x10], eax
push eax
lea edx, [esp + 0x28]
lea eax, [edi + edi + 2]
push edx
push eax
push ecx
call fcn.00402e60
mov edx, dword [ebx]
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov dword [edx - 8], edi
mov eax, dword [ebx]
mov word [ecx + eax], si
mov dword [ebp + 0x418], esi
mov ecx, dword [esp + 0x224]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x220
ret
mov edi, 0xff
mov eax, dword [ebx]
add edi, 0x100
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
mov dword [esp + 0x1c], esi
jg 0x4183b0
cmp edi, dword [eax - 4]
jle 0x41840d
mov eax, dword [eax - 8]
cmp edi, eax
mov dword [esp + 0x10], eax
jge 0x4183bf
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov ecx, ebx
push edx
call fcn.00403d10
test eax, eax
je 0x418447
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
lea ecx, [eax + eax + 2]
lea eax, [edx + edx + 2]
cmp eax, ecx
jb 0x4183fe
mov edi, dword [ebx]
mov edx, ecx
add esi, 0xc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x10]
push esi
mov dword [eax - 8], ecx
call fcn.00403e70
mov ecx, dword [ebx]
test ecx, ecx
mov dword [esp + 0x14], ecx
je 0x418447
mov edx, dword [0x45d3d0]
lea esi, [edi + 1]
push esi
push ecx
mov eax, dword [edx + 8]
push 0xa3
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x41843c
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub esi, eax
cmp esi, 1
jle 0x41838c
mov ecx, ebx
call fcn.0040e430
mov edx, dword [ebx]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebx]
mov dword [ecx - 8], eax
mov edx, dword [ebx]
mov word [edx + eax*2], 0
mov dword [ebp + 0x418], 0
jmp 0x41836c