Function at 0x4181c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
push 0x44dfb2
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.00407040
xor esi, esi
lea ecx, [ebp + 0x78]
mov dword [esp + 0x22c], esi
call fcn.0041adf0
lea edi, [ebp + 0x1c]
mov byte [esp + 0x22c], 1
mov ecx, edi
call fcn.0041bb30
mov dword [ebp], 0x450928
mov dword [edi], 0x45091c
mov dword [ebp + 0x58], 0x4508f4
lea ecx, [ebp + 0x98]
mov dword [esp + 0x22c], 2
cmp ecx, esi
je 0x41823e
lea eax, [ecx - 0x98]
jmp 0x418240
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.0040cb00
lea ecx, [ebp + 0x164]
mov byte [esp + 0x22c], 4
call fcn.0040cb00
lea ecx, [ebp + 0x224]
mov byte [esp + 0x22c], 5
call fcn.0040e4d0
lea ecx, [ebp + 0x2f0]
mov byte [esp + 0x22c], 6
call fcn.00424c80
lea ecx, [ebp + 0x344]
mov byte [esp + 0x22c], 7
call fcn.004242e0
mov eax, dword [0x458050]
lea ebx, [ebp + 0x38c]
mov dword [ebx], eax
lea ecx, [ebp + 0x3a8]
mov byte [esp + 0x22c], 9
call fcn.00422c80
lea ecx, [ebp + 0x3c4]
mov byte [esp + 0x22c], 0xa
call fcn.00422c80
mov ecx, dword [0x458050]
mov dword [ebp + 0x3e0], ecx
lea ecx, [ebp + 0x3e4]
mov byte [esp + 0x22c], 0xc
call fcn.0040f920
mov dword [ebp], 0x4508e8
mov dword [edi], 0x4508dc
mov dword [ebp + 0x58], 0x4508b4
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 [0x45e460]
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 0x418399
mov word [esp + 0x24], si
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x418417
lea eax, [esp + 0x24]
test eax, eax
jne 0x4183b1
xor edi, edi
jmp 0x4183be
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040ca60
test eax, eax
je 0x4183f6
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.00402e50
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 0x418440
cmp edi, dword [eax - 4]
jle 0x41849d
mov eax, dword [eax - 8]
cmp edi, eax
mov dword [esp + 0x10], eax
jge 0x41844f
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov ecx, ebx
push edx
call fcn.00403db0
test eax, eax
je 0x4184d7
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
lea ecx, [eax + eax + 2]
lea eax, [edx + edx + 2]
cmp eax, ecx
jb 0x41848e
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.00403f10
mov ecx, dword [ebx]
test ecx, ecx
mov dword [esp + 0x14], ecx
je 0x4184d7
mov edx, dword [0x45e460]
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 0x4184cc
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub esi, eax
cmp esi, 1
jle 0x41841c
mov ecx, ebx
call fcn.0040e420
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 0x4183fc