Function at 0x415950
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 [0x4075d4]
call fcn.00403e90
xor eax, eax
push ebp
push 0x415d02
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4d6fa4], 0
jne 0x415cd1
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x4159f4
push 0
mov dl, 1
mov eax, dword [0x4d6cb4]
call fcn.00409ea4
call fcn.00410b40
push eax
push 0x415768
push 0x4d6f94
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00415d84
push 0
mov dl, 1
mov eax, dword [0x4d6cb8]
call fcn.00409ea4
call fcn.00410b40
push eax
push 0x4157d0
push 0x4d6f98
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00415d84
jmp 0x415cca
cmp byte [0x4d6fa8], 0
jne 0x415c75
mov byte [0x4d6fa8], 1
lea edx, [ebp - 0xc]
mov eax, dword [0x4d6dd8]
call fcn.00406224
lea eax, [ebp - 0x60]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.00405dcc
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0xc]
call fcn.004037e4
mov eax, dword [ebp - 0x5c]
call fcn.00403998
push eax
push 0xc
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x415c75
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 0x415c6b
mov ebx, 0x32
cmp byte [ebp - 1], 0
jne 0x415ab4
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 0x415aa6
cmp eax, dword [esp]
pop edx
pop eax
je 0x415ab4
push 0x32
call sub.KERNEL32.dll_Sleep
dec ebx
jne 0x415a88
cmp byte [ebp - 1], 0
jne 0x415acf
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov ecx, dword [ebp - 0xc]
cmp edx, dword [ecx + 4]
jne 0x415ac9
cmp eax, dword [ecx]
je 0x415c5d
push 0x40
push 0x1000
push 0xa
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x4d6c38]
call fcn.00409fb8
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x4d6cbc]
call fcn.00409ea4
lea edx, [ebp - 0x58]
call fcn.00409d58
mov eax, dword [ebp - 0x38]
call fcn.004043c8
test eax, eax
jl 0x415c2d
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 0x415c25
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x38]
cmp dword [edx + eax*4 + 0x14], 0
jne 0x415b4e
mov edx, dword [ebp - 0x38]
cmp dword [edx + eax*4 + 0x18], 0
je 0x415c2d
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 0x415b93
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 0x415b9f
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.0040b100
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
je 0x415bc1
mov edx, 4
mov eax, dword [ebp - 0x14]
call fcn.0040b1e0
test al, al
je 0x415c2d
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x38]
cmp byte [edx + eax*4 + 0x10], 0
je 0x415be4
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 0x415bea
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov ecx, 4
mov edx, dword [ebp - 0x14]
call fcn.0040fe60
test al, al
jne 0x415c06
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
cmp byte [ebp - 0x15], 0
je 0x415c19
mov edx, 4
mov eax, dword [ebp - 0x14]
call fcn.0040b270
mov eax, dword [ebp - 8]
mov dword [0x4d6fac], eax
xor esi, esi
jmp 0x415c2d
inc ebx
dec eax
jne 0x415b18
cmp dword [0x4d6fac], 0
jne 0x415c4e
push edi
call sub.KERNEL32.dll_UnmapViewOfFile
push 0x8000
push 0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_VirtualFree
jmp 0x415c6b
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov dword [edi], edx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
jmp 0x415c6b
mov eax, dword [edi + 8]
mov dword [0x4d6fac], eax
push edi
call sub.KERNEL32.dll_UnmapViewOfFile
test esi, esi
je 0x415c75
push esi
call sub.KERNEL32.dll_CloseHandle
cmp dword [0x4d6fac], 0
je 0x415c9f
push 0
mov eax, dword [0x4d6fac]
push eax
push 0x4158c8
push 0x4d6fa0
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00415d84
jmp 0x415cca
push 0
mov dl, 1
mov eax, dword [0x4d6cbc]
call fcn.00409ea4
call fcn.00410b40
push eax
push 0x41584c
push 0x4d6f9c
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00415d84
mov byte [0x4d6fa4], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415d09
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.0040352c
lea eax, [ebp - 0x58]
mov edx, dword [0x4075d4]
call fcn.00403f54
lea eax, [ebp - 0xc]
call fcn.00403508
ret