Function at 0x10070460
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100cf5ad
push eax
mov dword fs:[0], esp
sub esp, 0x58
push 0x3e8
push dword [0x1010eb2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1007049d
push str.Couldnt_get_trampoline_region_lock__will_continue_possibly_unsafely._n
call fcn.10084630
add esp, 4
push ebx
lea eax, [ebp + 8]
mov ecx, 0x1010eb0c
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10051b60
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp + 8]
cmp byte [eax + 0xd], 0
jne 0x100704e4
cmp ebx, dword [eax + 0x10]
jb 0x100704e4
cmp eax, dword [0x1010eb0c]
je 0x100704e4
push dword [0x1010eb2c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x1010eb50]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x10070529
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x60]
push ecx
push str.System_page_size:__u_n
mov dword [0x1010eb50], ecx
call fcn.10084630
mov esi, dword [0x1010eb50]
add esp, 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], esi
test ebx, ebx
jne 0x10070582
push 0x40
push 0x3000
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x1007055c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_allocating_memory_during_hooking:__d_n
call fcn.10084630
add esp, 8
jmp 0x100707ed
mov eax, dword [0x1010eb40]
mov dword [ebp - 0x34], esi
cmp eax, dword [0x1010eb44]
je 0x1007057a
mov dword [eax], esi
add dword [0x1010eb40], 4
jmp 0x1007071d
lea ecx, [ebp - 0x34]
jmp 0x10070711
mov eax, ebx
push 0
cdq
mov ebx, edx
mov edi, eax
push esi
push ebx
push edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], ebx
call fcn.100a5f20
mov ecx, edi
sub ecx, eax
mov eax, ebx
mov edi, ecx
mov dword [ebp - 0x34], ecx
sbb eax, edx
sub edi, esi
mov ebx, eax
mov dword [ebp - 0x20], eax
sbb ebx, 0
mov edx, 0
add esi, ecx
mov dword [ebp - 0x1c], esi
adc edx, eax
xor al, al
mov dword [ebp - 0x14], edx
mov byte [ebp - 0xe], al
sub ecx, edi
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x24], ecx
mov eax, esi
mov ecx, dword [ebp - 0x20]
sbb ecx, ebx
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, edx
sbb eax, dword [ebp - 0x20]
cmp ecx, eax
jg 0x100705f7
jl 0x100705ed
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x38]
jae 0x100705f7
mov eax, edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], eax
jmp 0x10070603
mov byte [ebp - 0xd], 1
mov eax, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], edx
push 0x1c
lea ecx, [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10070641
cmp byte [ebp - 0xe], al
jne 0x1007062a
push str.VirtualQuery_failures_n
call fcn.10084630
add esp, 4
mov byte [ebp - 0xe], 1
cmp byte [ebp - 0xd], 0
mov edx, dword [ebp - 0x14]
je 0x10070696
add esi, dword [ebp - 0x50]
mov dword [ebp - 0x1c], esi
adc edx, 0
mov dword [ebp - 0x14], edx
jmp 0x1007069c
cmp dword [ebp - 0x4c], 0x10000
jne 0x1007062a
push 0x40
push 0x3000
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x100706f3
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
cmp byte [ebp - 0xd], al
je 0x10070688
add esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
adc edx, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], edx
jmp 0x100705c4
sub edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
sbb ebx, 0
jmp 0x100705c4
sub edi, dword [ebp - 0x50]
sbb ebx, 0
mov eax, dword [ebp - 0x18]
mov ecx, 0
add eax, esi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
adc ecx, edx
add eax, 0x7fffffff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
adc eax, 0
cmp ecx, eax
jl 0x100706eb
jg 0x100706ca
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x24]
jb 0x100706eb
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
add ecx, 0x80000000
adc eax, 0
cmp ebx, eax
jl 0x10070766
jg 0x100706eb
cmp edi, ecx
jbe 0x10070766
mov ecx, dword [ebp - 0x34]
jmp 0x100705c4
mov eax, dword [0x1010eb40]
mov dword [ebp - 0x38], esi
cmp eax, dword [0x1010eb44]
je 0x1007070e
mov dword [eax], esi
add dword [0x1010eb40], 4
jmp 0x1007071d
lea ecx, [ebp - 0x38]
push ecx
push eax
mov ecx, 0x1010eb3c
call fcn.1006fe30
mov edi, dword [ebp - 0x18]
add edi, 0xffffffc0
add edi, esi
cmp esi, edi
ja 0x100707ed
lea ecx, [ecx]
mov eax, dword [0x1010eb34]
mov dword [ebp - 0x38], esi
cmp eax, dword [0x1010eb38]
je 0x1007074b
mov dword [eax], esi
add dword [0x1010eb34], 4
jmp 0x1007075a
lea ecx, [ebp - 0x38]
push ecx
push eax
mov ecx, 0x1010eb30
call fcn.1006fe30
add esi, 0x40
cmp esi, edi
jbe 0x10070730
jmp 0x100707ed
push str.Could_not_find_page_for_trampoline_in____2GB_range_of_function_to_hook_n
call fcn.10084630
add esp, 4
lea eax, [ebp + 8]
mov ecx, 0x1010eb0c
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10051b60
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
jne 0x1007079b
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x10]
jae 0x100707ed
cmp dword [0x1010eb10], 0xccccccc
je 0x1007080a
mov esi, dword [0x1010eb0c]
mov dword [ebp - 0x3c], 0x1010eb0c
push 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0
call fcn.100a573e
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x10], ecx
mov ecx, 0x1010eb0c
push eax
mov dword [eax], esi
mov dword [eax + 4], esi
push ebx
mov dword [eax + 8], esi
push edi
mov word [eax + 0xc], 0
call fcn.100532d0
push dword [0x1010eb2c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.100535c0
int3