Function at 0x10005b20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
push edi
cmp esi, 0x7ff80000
jbe 0x10005b3e
lea ebx, [esi - 0x7ff80000]
mov dword [ebp - 8], ebx
jmp 0x10005b48
mov dword [ebp - 8], 0x10000
mov ebx, dword [ebp - 8]
cmp esi, 0x80000000
jae 0x10005b5b
lea edi, [esi + 0x7ff80000]
mov dword [ebp - 4], edi
jmp 0x10005b65
mov dword [ebp - 4], 0xfff80000
mov edi, dword [ebp - 4]
mov eax, dword [0x10058c7c]
mov edx, dword [0x10058c78]
test eax, eax
jne 0x10005b7f
test edx, edx
je 0x10005b92
mov eax, edx
mov dword [0x10058c7c], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10005b92
cmp ecx, ebx
jb 0x10005b92
cmp ecx, edi
jbe 0x10005cee
mov eax, edx
mov dword [0x10058c7c], eax
test edx, edx
je 0x10005bc0
test eax, eax
je 0x10005bb4
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10005bb4
cmp ecx, ebx
jb 0x10005bb4
cmp ecx, edi
jbe 0x10005ce9
mov eax, dword [eax + 4]
test eax, eax
jne 0x10005ba1
mov dword [0x10058c7c], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, esi
jbe 0x10005c37
jmp 0x10005be0
lea ecx, [edi - 0x70000000]
cmp ecx, sym.Steam.dll_Ordinal_175
ja 0x10005bf3
mov edi, 0x6fff0000
push 0x1c
lea edx, [ebp - 0x40]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10005c37
mov eax, 0x10000
cmp dword [ebp - 0x30], eax
jne 0x10005c13
cmp dword [ebp - 0x34], eax
jae 0x10005c23
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 8]
ja 0x10005be0
jmp 0x10005c37
push 0x40
push 0x3000
push eax
push edi
call ebx
mov dword [0x10058c7c], eax
test eax, eax
jne 0x10005caf
mov edi, dword [ebp - 4]
cmp esi, edi
jae 0x10005ca6
mov edi, edi
lea eax, [esi - 0x70000000]
cmp eax, sym.Steam.dll_Ordinal_175
ja 0x10005c52
mov esi, 0x80010000
push 0x1c
lea ecx, [ebp - 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10005ca6
mov edx, 0x10000
cmp dword [ebp - 0x14], edx
jne 0x10005c9c
cmp dword [ebp - 0x18], edx
jb 0x10005c9c
movzx ecx, si
test ecx, ecx
je 0x10005c88
mov esi, dword [ebp - 0x24]
mov eax, edx
sub eax, ecx
sub dword [ebp - 0x18], eax
add esi, eax
mov dword [ebp - 0x24], esi
push 0x40
push 0x3000
push edx
push esi
call ebx
mov dword [0x10058c7c], eax
test eax, eax
jne 0x10005caf
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x18]
cmp esi, edi
jb 0x10005c40
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10058c78]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x10058c78], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x10005cd3
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov dword [eax + 8], edx
jmp 0x10005cee
mov dword [0x10058c7c], eax
mov ecx, dword [eax + 8]
cmp ecx, ebx
jb 0x10005ca6
cmp ecx, edi
ja 0x10005ca6
mov edx, dword [ecx + 0x18]
mov dword [eax + 8], edx
mov eax, 0xcccccccc
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
pop edi
mov dword [ecx + 0x18], eax
pop esi
mov dword [ecx + 0x1c], eax
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret