Function at 0x4151e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
mov edx, dword [0x40941c]
call fcn.00405388
xor eax, eax
push ebp
push 0x41564f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x427728], 0
jne 0x41561e
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
je 0x41528c
push 0
mov dl, 1
mov eax, dword [0x427428]
call fcn.0040bcf0
call fcn.004102fc
push eax
push 0x415000
push 0x427718
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00415c28
push 0
mov dl, 1
mov eax, dword [0x42742c]
call fcn.0040bcf0
call fcn.004102fc
push eax
push 0x415068
push 0x42771c
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00415c28
jmp 0x415617
cmp byte [0x42772c], 0
jne 0x4155c2
mov byte [0x42772c], 1
lea edx, [ebp - 4]
mov eax, dword [0x427548]
call fcn.00407f58
lea eax, [ebp - 0x70]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.00407af0
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 4]
call fcn.00404ab8
mov eax, dword [ebp - 0x6c]
call fcn.00404c30
push eax
push 0xc
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x4155c2
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
setne byte [ebp - 0x45]
push 0
push 0
push 0
push 0xf001f
push esi
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
test edi, edi
je 0x4155b8
mov ebx, 0x32
cmp byte [ebp - 0x45], 0
jne 0x41534c
mov eax, dword [edi]
mov edx, dword [edi + 4]
push edx
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x41533e
cmp eax, dword [esp]
pop edx
pop eax
je 0x41534c
push 0x32
call sub.kernel32.dll_Sleep_1
dec ebx
jne 0x415320
cmp byte [ebp - 0x45], 0
jne 0x415367
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 4]
jne 0x415361
cmp eax, dword [ecx]
je 0x4155aa
push 0x40
push 0x1000
push 0xe
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x4c], eax
mov dl, 1
mov eax, dword [0x42739c]
call fcn.0040bdfc
mov dword [ebp - 0x54], eax
mov dl, 1
mov eax, dword [0x427430]
call fcn.0040bcf0
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
mov dword [ebp - 0x68], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x58]
push eax
call fcn.004167b0
test eax, eax
jne 0x4153c1
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x58]
call fcn.0040bba4
mov eax, dword [ebp - 0x24]
call fcn.00405810
test eax, eax
jl 0x41550a
inc eax
xor ebx, ebx
mov edx, ebx
add edx, edx
add edx, edx
add edx, edx
sub edx, ebx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + edx*4 + 0xc]
cmp edx, dword [ebp - 0x54]
jne 0x415502
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
cmp dword [edx + eax*4 + 0x14], 0
jne 0x41541b
mov edx, dword [ebp - 0x24]
cmp dword [edx + eax*4 + 0x18], 0
je 0x41550a
mov edx, dword [ebp - 0x4c]
mov dword [edi + 8], edx
mov edx, dword [ebp - 0x4c]
mov byte [edx], 0xff
mov edx, dword [ebp - 0x4c]
mov byte [edx + 1], 0x25
mov edx, dword [ebp - 0x4c]
add edx, 6
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 2], edx
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x54]
mov dword [edx + 6], ecx
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x4c]
mov dword [edx + 0xa], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx + eax*4 + 0x14], 0
je 0x41546c
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0x14]
mov dword [ebp - 0x54], eax
jmp 0x415476
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
call fcn.0040cf38
mov byte [ebp - 0x59], al
cmp byte [ebp - 0x59], 0
je 0x415498
mov edx, 4
mov eax, dword [ebp - 0x54]
call fcn.0040d018
test al, al
je 0x41550a
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
cmp byte [edx + eax*4 + 0x10], 0
je 0x4154be
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [edx + eax*4 + 4]
sub ecx, 5
mov dword [ebp - 0x50], ecx
jmp 0x4154c7
mov eax, dword [ebp - 0x4c]
add eax, 0xa
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
mov ecx, 4
mov edx, dword [ebp - 0x54]
call fcn.0040f6e4
test al, al
jne 0x4154e3
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov dword [eax], edx
cmp byte [ebp - 0x59], 0
je 0x4154f6
mov edx, 4
mov eax, dword [ebp - 0x54]
call fcn.0040d0a8
mov eax, dword [ebp - 0x4c]
mov dword [0x427730], eax
xor esi, esi
jmp 0x41550a
inc ebx
dec eax
jne 0x4153df
cmp dword [ebp - 0x64], 0
jne 0x415514
cmp dword [ebp - 0x68], 0
je 0x41557a
mov eax, dword [ebp - 0x58]
call fcn.0040cf38
mov byte [ebp - 0x59], al
cmp byte [ebp - 0x59], 0
je 0x415538
mov edx, 8
mov eax, dword [ebp - 0x58]
call fcn.0040d018
test al, al
je 0x41557a
lea eax, [ebp - 0x68]
mov ecx, 8
mov edx, dword [ebp - 0x58]
call fcn.0040f6e4
test al, al
jne 0x41555a
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x68]
mov dword [eax], edx
mov edx, dword [ebp - 0x64]
mov dword [eax + 4], edx
mov edx, 8
mov eax, dword [ebp - 0x58]
call fcn.00414134
cmp byte [ebp - 0x59], 0
je 0x41557a
mov edx, 8
mov eax, dword [ebp - 0x58]
call fcn.0040d0a8
cmp dword [0x427730], 0
jne 0x41559b
push edi
call sub.kernel32.dll_UnmapViewOfFile
push 0x8000
push 0
mov eax, dword [ebp - 0x4c]
push eax
call sub.kernel32.dll_VirtualFree_1
jmp 0x4155b8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov dword [edi], edx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
jmp 0x4155b8
mov eax, dword [edi + 8]
mov dword [0x427730], eax
push edi
call sub.kernel32.dll_UnmapViewOfFile
test esi, esi
je 0x4155c2
push esi
call sub.kernel32.dll_CloseHandle
cmp dword [0x427730], 0
je 0x4155ec
push 0
mov eax, dword [0x427730]
push eax
push 0x415160
push 0x427724
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00415c28
jmp 0x415617
push 0
mov dl, 1
mov eax, dword [0x427430]
call fcn.0040bcf0
call fcn.004102fc
push eax
push 0x4150e4
push 0x427720
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00415c28
mov byte [0x427728], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415656
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.004047e8
lea eax, [ebp - 0x44]
mov edx, dword [0x40941c]
call fcn.0040544c
lea eax, [ebp - 4]
call fcn.004047c4
ret