Function at 0x41cfb8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd74
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
mov dword [ebp - 4], eax
mov eax, 0x41d270
call fcn.0041ce9c
mov ebx, eax
xor ecx, ecx
mov edx, 0x41d28c
mov eax, ebx
call fcn.004072e8
mov edi, eax
xor ecx, ecx
mov edx, 0x41d2a0
mov eax, ebx
call fcn.004072e8
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov edx, 0x41d2c0
mov eax, ebx
call fcn.004072e8
mov dword [ebp - 0x1c], eax
push esi
push 0x33c
call fcn.0040bff4
mov ebx, eax
test ebx, ebx
je 0x41d260
test edi, edi
je 0x41d260
cmp dword [ebp - 0x18], 0
je 0x41d260
cmp dword [ebp - 0x1c], 0
je 0x41d260
mov word [ebp - 0x289], 0xb848
mov eax, edi
xor edx, edx
mov dword [ebp - 0x287], eax
mov dword [ebp - 0x283], edx
mov byte [ebp - 0x27f], 0x50
mov byte [ebp - 0x27e], 0x51
mov byte [ebp - 0x27d], 0x52
mov word [ebp - 0x27c], 0x5041
mov word [ebp - 0x27a], 0x5141
mov dword [ebp - 0x278], 0x28ec8348
mov word [ebp - 0x274], 0xb948
mov eax, ebx
xor edx, edx
mov dword [ebp - 0x272], eax
mov dword [ebp - 0x26e], edx
mov word [ebp - 0x26a], 0xba48
lea eax, [ebx + 0x26c]
xor edx, edx
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], edx
mov word [ebp - 0x260], 0xe2ff
xor eax, eax
mov dword [ebp - 0x25e], eax
mov dword [ebp - 0x25a], 0
mov dword [ebp - 0x256], 0
mov eax, dword [ebp - 0x287]
mov dword [ebp - 0x252], eax
mov eax, dword [ebp - 0x283]
mov dword [ebp - 0x24e], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x14]
push eax
call sub.KERNEL32.dll_lstrlenW
mov edi, eax
add edi, edi
mov word [ebp - 0x245], di
add di, 2
mov word [ebp - 0x243], di
xor eax, eax
mov dword [ebp - 0x241], eax
lea eax, [ebx + 0x54]
xor edx, edx
mov dword [ebp - 0x23d], eax
mov dword [ebp - 0x239], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x14]
push eax
lea eax, [ebp - 0x235]
push eax
call sub.KERNEL32.dll_lstrcpyW
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x2d], eax
mov dword [ebp - 0x29], edx
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x25], eax
mov dword [ebp - 0x21], edx
lea eax, [ebp - 0x10]
push eax
push 0x26d
lea eax, [ebp - 0x289]
push eax
push ebx
push esi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x41d260
cmp dword [ebp - 0x10], 0x26d
jne 0x41d260
lea eax, [ebp - 0x10]
push eax
push 0xcf
push 0x52d32c
lea eax, [ebx + 0x26c]
push eax
push esi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x41d260
cmp dword [ebp - 0x10], 0xcf
jne 0x41d260
lea eax, [ebp - 0x10]
push eax
push 5
lea eax, [ebp - 9]
push eax
mov eax, dword [ebp - 0x252]
push eax
push esi
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x41d260
cmp dword [ebp - 0x10], 5
jne 0x41d260
lea eax, [ebp - 0x10]
push eax
push 5
lea eax, [ebp - 9]
push eax
lea eax, [ebx + 0x3f]
push eax
push esi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x41d260
cmp dword [ebp - 0x10], 5
jne 0x41d260
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
mov eax, dword [ebp - 0x252]
push eax
push esi
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
je 0x41d260
mov byte [ebp - 9], 0xe9
mov eax, dword [ebp - 0x252]
sub ebx, eax
sub ebx, 5
mov dword [ebp - 8], ebx
lea eax, [ebp - 0x10]
push eax
push 5
lea eax, [ebp - 9]
push eax
mov eax, dword [ebp - 0x252]
push eax
push esi
call sub.KERNEL32.dll_WriteProcessMemory
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 5
mov eax, dword [ebp - 0x252]
push eax
push esi
call sub.KERNEL32.dll_VirtualProtectEx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret