Function at 0x25137bf4
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 - 4], eax
lea eax, [ebp - 0x44]
mov edx, dword [0x2512b68c]
call fcn.251265ec
xor eax, eax
push ebp
push 0x25137fb2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x25146bc0], 0
jne 0x25137f81
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x25137c98
push 0
mov dl, 1
mov eax, dword [0x251468f0]
call fcn.2512df9c
call fcn.2513283c
push eax
push 0x25137a0c
push 0x25146bb0
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.25138034
push 0
mov dl, 1
mov eax, dword [0x251468f4]
call fcn.2512df9c
call fcn.2513283c
push eax
push 0x25137a74
push 0x25146bb4
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.25138034
jmp 0x25137f7a
cmp byte [0x25146bc1], 0
jne 0x25137f25
mov byte [0x25146bc1], 1
lea edx, [ebp - 4]
mov eax, dword [0x25146a04]
call fcn.25129f28
lea eax, [ebp - 0x60]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.25129a4c
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 4]
call fcn.25125d48
mov eax, dword [ebp - 0x5c]
call fcn.25125ecc
push eax
push 0xc
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x25137f25
call sub.kernel32.dll_GetLastError_1
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 0x25137f1b
mov ebx, 0x32
cmp byte [ebp - 0x45], 0
jne 0x25137d58
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 0x25137d4a
cmp eax, dword [esp]
pop edx
pop eax
je 0x25137d58
push 0x32
call sub.kernel32.dll_Sleep_1
dec ebx
jne 0x25137d2c
cmp byte [ebp - 0x45], 0
jne 0x25137d73
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 4]
jne 0x25137d6d
cmp eax, dword [ecx]
je 0x25137f0d
push 0x40
push 0x1000
push 0xa
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x4c], eax
mov dl, 1
mov eax, dword [0x25146878]
call fcn.2512e0a8
mov dword [ebp - 0x54], eax
mov dl, 1
mov eax, dword [0x251468f8]
call fcn.2512df9c
lea edx, [ebp - 0x44]
call fcn.2512de50
mov eax, dword [ebp - 0x24]
call fcn.25126be0
test eax, eax
jl 0x25137edd
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 0x25137ed5
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 0x25137df8
mov edx, dword [ebp - 0x24]
cmp dword [edx + eax*4 + 0x18], 0
je 0x25137edd
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 - 0x24]
cmp dword [edx + eax*4 + 0x14], 0
je 0x25137e40
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 0x25137e4c
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
call fcn.2512f5a8
mov byte [ebp - 0x55], al
cmp byte [ebp - 0x55], 0
je 0x25137e6e
mov edx, 4
mov eax, dword [ebp - 0x54]
call fcn.2512f688
test al, al
je 0x25137edd
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 0x25137e94
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 0x25137e9a
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
mov ecx, 4
mov edx, dword [ebp - 0x54]
call fcn.25131e68
test al, al
jne 0x25137eb6
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov dword [eax], edx
cmp byte [ebp - 0x55], 0
je 0x25137ec9
mov edx, 4
mov eax, dword [ebp - 0x54]
call fcn.2512f718
mov eax, dword [ebp - 0x4c]
mov dword [0x25146bc4], eax
xor esi, esi
jmp 0x25137edd
inc ebx
dec eax
jne 0x25137dbc
cmp dword [0x25146bc4], 0
jne 0x25137efe
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 0x25137f1b
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov dword [edi], edx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
jmp 0x25137f1b
mov eax, dword [edi + 8]
mov dword [0x25146bc4], eax
push edi
call sub.kernel32.dll_UnmapViewOfFile
test esi, esi
je 0x25137f25
push esi
call sub.kernel32.dll_CloseHandle_1
cmp dword [0x25146bc4], 0
je 0x25137f4f
push 0
mov eax, dword [0x25146bc4]
push eax
push 0x25137b6c
push 0x25146bbc
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.25138034
jmp 0x25137f7a
push 0
mov dl, 1
mov eax, dword [0x251468f8]
call fcn.2512df9c
call fcn.2513283c
push eax
push 0x25137af0
push 0x25146bb8
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.25138034
mov byte [0x25146bc0], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x25137fb9
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.2512578c
lea eax, [ebp - 0x44]
mov edx, dword [0x2512b68c]
call fcn.251266b8
lea eax, [ebp - 4]
call fcn.25125720
ret