Function at 0x60a880
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x28], 0
cmp dword [ebp + 0x10], 0
je 0x60a89c
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
cmp dword [ebp + 0x14], 0
je 0x60a8ab
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
cmp dword [ebp + 0x18], 0
je 0x60a8ba
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
cmp dword [ebp + 0xc], 0
jne 0x60a8ca
mov eax, 0x57
jmp 0x60acac
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x7627a8], eax
je 0x60a8e2
mov eax, 0x10dd
jmp 0x60acac
cmp dword [0x7627ac], 0
je 0x60a8f5
mov eax, dword [0x7627ac]
jmp 0x60acac
cmp dword [ebp + 8], 0
jne 0x60a905
mov eax, 6
jmp 0x60acac
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x60a92e
mov dword [ebp - 0x28], 6
mov ecx, dword [ebp - 0x28]
mov dword [0x7627ac], ecx
mov edx, dword [ebp + 8]
mov dword [0x7627b0], edx
mov eax, dword [ebp - 0x28]
jmp 0x60acac
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
push 0
mov edx, dword [ebp - 0x24]
push edx
call fcn.00609cf0
mov dword [ebp - 0x24], eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00609cf0
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x24]
jne 0x60a97b
cmp dword [0x7627a0], 0
je 0x60a976
jmp 0x60aca7
jmp 0x60aca2
cmp dword [ebp + 0x14], 0
je 0x60a989
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
cmp dword [ebp + 0x18], 0
je 0x60a997
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
mov dword [ecx], edx
push 0x18
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x60aa17
mov dword [ebp - 0x28], 8
mov ecx, dword [ebp - 0x28]
mov dword [0x7627ac], ecx
cmp dword [ebp - 0x20], 0
je 0x60a9e8
mov edx, dword [ebp - 0x20]
push edx
call fcn.0060a190
add esp, 4
mov dword [ebp - 0x20], 0
cmp dword [ebp + 0x10], 0
je 0x60a9e8
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
cmp dword [ebp - 0x2c], 0
je 0x60aa07
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 8]
mov dword [0x7627b0], eax
mov eax, dword [ebp - 0x28]
jmp 0x60acac
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0060b1c0
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x60aa35
mov dword [ebp - 0x28], 8
jmp 0x60a9b7
cmp dword [ebp + 0x10], 0
je 0x60aa43
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
push 8
push 0
mov ecx, dword [ebp - 0x20]
add ecx, 0x38
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x1e
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 5
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x10]
jae 0x60ab34
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0060b8a0
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x24]
mov dword [ebp - 0xc], ecx
mov dl, byte [ebp - 0xc]
and dl, 7
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 8]
mov cl, byte [eax + 0x38]
and cl, 0xf8
or cl, dl
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 8]
mov byte [edx + 0x38], cl
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
and al, 0x1f
shl al, 3
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 8]
mov dl, byte [ecx + 0x38]
and dl, 7
or dl, al
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 8]
mov byte [eax + 0x38], dl
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 8
jb 0x60ab1d
jmp 0x60ab34
mov edx, dword [ebp - 0x30]
push edx
call fcn.0060acc0
add esp, 4
test eax, eax
je 0x60ab2f
jmp 0x60ab34
jmp 0x60aa80
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jae 0x60ab67
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0060ade0
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x60ab53
jmp 0x60ab67
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x38]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
jmp 0x60ab34
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
jb 0x60ab75
cmp dword [ebp - 8], 8
jbe 0x60ab8f
mov dword [ebp - 0x28], 9
cmp dword [0x7627a0], 0
je 0x60ab8a
jmp 0x60a9c0
jmp 0x60a9b7
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x18]
jbe 0x60ab9d
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0x1e], al
mov edx, dword [ebp - 0x20]
mov al, byte [ebp - 0xc]
mov byte [edx + 0x36], al
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x20]
add eax, 0x20
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, 0x1e
sub ecx, dword [ebp - 0x10]
cmp dword [ebp - 0xc], ecx
jbe 0x60abe2
mov dword [ebp - 0x28], 6
jmp 0x60a9b7
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x40], edx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x44], edx
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov cl, byte [eax + 0x1e]
mov edx, dword [ebp - 0x20]
add edx, ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0060a580
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0060a5c0
add esp, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x60ac5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
jmp 0x60a9b7
mov edx, dword [ebp - 0x2c]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x7627b8]
mov dword [edx], eax
mov ecx, dword [ebp - 0x2c]
mov dword [0x7627b8], ecx
xor eax, eax
jmp 0x60acac
jmp 0x60a9b7
jmp 0x60a9c0
mov esp, ebp
pop ebp
ret 0x14