Function at 0x41a414
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x58]
mov edx, dword [0x40e17c]
call fcn.0040ad58
xor eax, eax
push ebp
push 0x41a7c6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x429f80], 0
jne 0x41a795
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x41a4b8
push 0
mov dl, 1
mov eax, dword [0x429ca4]
call fcn.00410a4c
call fcn.00415604
push eax
push 0x41a22c
push 0x429f70
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0041a848
push 0
mov dl, 1
mov eax, dword [0x429ca8]
call fcn.00410a4c
call fcn.00415604
push eax
push 0x41a294
push 0x429f74
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0041a848
jmp 0x41a78e
cmp byte [0x429f84], 0
jne 0x41a739
mov byte [0x429f84], 1
lea edx, [ebp - 0xc]
mov eax, dword [0x429db8]
call fcn.0040ce60
lea eax, [ebp - 0x60]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040cb08
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0xc]
call fcn.0040a7e4
mov eax, dword [ebp - 0x5c]
call fcn.0040a998
push eax
push 0xc
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x41a739
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
setne byte [ebp - 1]
push 0
push 0
push 0
push 0xf001f
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
test edi, edi
je 0x41a72f
mov ebx, 0x32
cmp byte [ebp - 1], 0
jne 0x41a578
mov eax, dword [edi]
mov edx, dword [edi + 4]
push edx
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x41a56a
cmp eax, dword [esp]
pop edx
pop eax
je 0x41a578
push 0x32
call sub.KERNEL32.dll_Sleep
dec ebx
jne 0x41a54c
cmp byte [ebp - 1], 0
jne 0x41a593
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov ecx, dword [ebp - 0xc]
cmp edx, dword [ecx + 4]
jne 0x41a58d
cmp eax, dword [ecx]
je 0x41a721
push 0x40
push 0x1000
push 0xa
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x429c2c]
call fcn.00410b60
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x429cac]
call fcn.00410a4c
lea edx, [ebp - 0x58]
call fcn.00410900
mov eax, dword [ebp - 0x38]
call fcn.0040b290
test eax, eax
jl 0x41a6f1
inc eax
xor ebx, ebx
mov edx, ebx
shl edx, 3
sub edx, ebx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + edx*4 + 0xc]
cmp edx, dword [ebp - 0x14]
jne 0x41a6e9
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x38]
cmp dword [edx + eax*4 + 0x14], 0
jne 0x41a612
mov edx, dword [ebp - 0x38]
cmp dword [edx + eax*4 + 0x18], 0
je 0x41a6f1
mov edx, dword [ebp - 8]
mov dword [edi + 8], edx
mov edx, dword [ebp - 8]
mov byte [edx], 0xff
mov edx, dword [ebp - 8]
mov byte [edx + 1], 0x25
mov edx, dword [ebp - 8]
add edx, 6
mov ecx, dword [ebp - 8]
mov dword [ecx + 2], edx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [edx + 6], ecx
mov edx, dword [ebp - 0x38]
cmp dword [edx + eax*4 + 0x14], 0
je 0x41a657
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + eax*4 + 0x14]
mov dword [ebp - 0x14], eax
jmp 0x41a663
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + eax*4 + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.00411ca8
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
je 0x41a685
mov edx, 4
mov eax, dword [ebp - 0x14]
call fcn.00411d88
test al, al
je 0x41a6f1
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x38]
cmp byte [edx + eax*4 + 0x10], 0
je 0x41a6a8
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 8]
sub ecx, dword [edx + eax*4 + 4]
sub ecx, 5
mov dword [ebp - 0x10], ecx
jmp 0x41a6ae
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov ecx, 4
mov edx, dword [ebp - 0x14]
call fcn.00414924
test al, al
jne 0x41a6ca
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
cmp byte [ebp - 0x15], 0
je 0x41a6dd
mov edx, 4
mov eax, dword [ebp - 0x14]
call fcn.00411e18
mov eax, dword [ebp - 8]
mov dword [0x429f88], eax
xor esi, esi
jmp 0x41a6f1
inc ebx
dec eax
jne 0x41a5dc
cmp dword [0x429f88], 0
jne 0x41a712
push edi
call sub.KERNEL32.dll_UnmapViewOfFile
push 0x8000
push 0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_VirtualFree
jmp 0x41a72f
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov dword [edi], edx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
jmp 0x41a72f
mov eax, dword [edi + 8]
mov dword [0x429f88], eax
push edi
call sub.KERNEL32.dll_UnmapViewOfFile
test esi, esi
je 0x41a739
push esi
call sub.KERNEL32.dll_CloseHandle
cmp dword [0x429f88], 0
je 0x41a763
push 0
mov eax, dword [0x429f88]
push eax
push 0x41a38c
push 0x429f7c
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0041a848
jmp 0x41a78e
push 0
mov dl, 1
mov eax, dword [0x429cac]
call fcn.00410a4c
call fcn.00415604
push eax
push 0x41a310
push 0x429f78
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0041a848
mov byte [0x429f80], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a7cd
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.0040a52c
lea eax, [ebp - 0x58]
mov edx, dword [0x40e17c]
call fcn.0040ae1c
lea eax, [ebp - 0xc]
call fcn.0040a508
ret