Function at 0x4688d0
Capabilities:
Allocate or change rwx memory
Check for software breakpoints
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x24
push ebx
push esi
xor esi, esi
push edi
test eax, eax
je 0x4688e4
mov dword [eax], esi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x4688ed
mov dword [edi], esi
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x4688f6
mov dword [ebx], esi
cmp dword [ebp + 0xc], esi
jne 0x468909
pop edi
pop esi
mov eax, 0x57
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x596868], eax
je 0x468925
pop edi
pop esi
mov eax, 0x10dd
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x59686c]
test eax, eax
jne 0x468d39
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x46894f
mov eax, dword [ecx]
test eax, eax
jne 0x46895d
mov dword [0x59686c], 6
mov dword [0x596870], ecx
pop edi
pop esi
mov eax, 6
pop ebx
mov esp, ebp
pop ebp
ret 0x14
xor ecx, ecx
push ecx
push eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], ecx
call fcn.00468d50
push 0
push dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
call fcn.00468d50
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp + 0x14]
jne 0x468992
cmp dword [0x596860], esi
jne 0x468d2f
jmp 0x468cfa
mov esi, dword [ebp + 0x14]
test edi, edi
je 0x46899b
mov dword [edi], esi
test ebx, ebx
je 0x4689a1
mov dword [ebx], eax
push 0x18
call fcn.004d2477
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x468cf5
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x18]
push eax
push esi
call fcn.00468430
mov ecx, dword [0x59685c]
add esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov eax, dword [0x596858]
test ecx, ecx
jne 0x4689e8
test eax, eax
je 0x4689fb
mov ecx, eax
mov dword [0x59685c], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x4689fb
cmp edx, ebx
jb 0x4689fb
cmp edx, edi
jbe 0x468a84
mov ecx, eax
mov dword [0x59685c], ecx
test eax, eax
je 0x468a27
test ecx, ecx
je 0x468a1a
mov eax, dword [ecx + 8]
test eax, eax
je 0x468a1a
cmp eax, ebx
jb 0x468a1a
cmp eax, edi
jbe 0x468a84
mov ecx, dword [ecx + 4]
mov dword [0x59685c], ecx
test ecx, ecx
jne 0x468a0b
push edi
movzx eax, si
mov ecx, esi
sub ecx, eax
push ebx
push ecx
call fcn.004682b0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x468cf5
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov esi, 0x38b
mov eax, dword [0x596858]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x59685c], ecx
mov dword [0x596858], ecx
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x468a71
mov esi, dword [ebp + 0x14]
mov dword [ecx + 8], edx
mov edx, dword [ecx + 8]
mov dword [ebp - 4], edx
cmp edx, ebx
jb 0x468cf5
cmp edx, edi
ja 0x468cf5
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
mov ecx, edx
mov eax, dword [ebp + 0x10]
mov dword [edx], 0xcccccccc
mov dword [edx + 4], 0xcccccccc
mov dword [edx + 8], 0xcccccccc
mov dword [edx + 0xc], 0xcccccccc
mov dword [edx + 0x10], 0xcccccccc
mov dword [edx + 0x14], 0xcccccccc
mov dword [edx + 0x18], 0xcccccccc
mov dword [edx + 0x1c], 0xcccccccc
mov dword [edx + 0x20], 0xcccccccc
mov dword [edx + 0x24], 0xcccccccc
mov dword [edx + 0x28], 0xcccccccc
mov dword [edx + 0x2c], 0xcccccccc
mov dword [edx + 0x30], 0xcccccccc
mov dword [edx + 0x34], 0xcccccccc
mov dword [edx + 0x40], 0xcccccccc
mov dword [edx + 0x44], 0xcccccccc
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x468b1d
mov dword [eax], edx
lea eax, [edx + 0x38]
mov dword [ebp + 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
movq qword [eax], xmm0
mov edi, esi
lea eax, [edx + 0x1e]
mov ebx, edx
mov dword [ebp - 0xc], eax
nop dword [eax + eax]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push edi
lea eax, [ebp - 0xc]
mov esi, edi
push eax
push ebx
call fcn.0046a1a0
mov edx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp - 0x14]
inc dword [ebp + 0x18]
sub eax, esi
add eax, edi
add ebx, eax
mov dword [ebp - 8], ebx
mov ebx, edi
mov ch, byte [ebp - 8]
sub ebx, dword [ebp + 0x14]
sub ch, dl
mov al, ch
mov byte [ebp + 0xf], ch
shl al, 3
mov cl, bl
and cl, 7
or cl, al
mov eax, dword [ebp - 0x18]
mov byte [eax], cl
inc eax
cmp dword [ebp + 0x18], 8
mov dword [ebp - 0x18], eax
jae 0x468bf5
mov al, byte [esi]
cmp al, 0xeb
je 0x468bf5
cmp al, 0xe9
je 0x468bf5
cmp al, 0xe0
je 0x468bf5
cmp al, 0xc2
je 0x468bf5
cmp al, 0xc3
je 0x468bf5
cmp al, 0xcc
je 0x468bf5
cmp al, 0xf3
jne 0x468bba
cmp byte [esi + 1], 0xc3
jmp 0x468be6
cmp al, 0xff
jne 0x468bc4
cmp byte [esi + 1], 0x25
jmp 0x468be6
cmp al, 0x26
je 0x468bdc
cmp al, 0x2e
je 0x468bdc
cmp al, 0x36
je 0x468bdc
cmp al, 0x3e
je 0x468bdc
cmp al, 0x64
je 0x468bdc
cmp al, 0x65
jne 0x468be8
cmp byte [esi + 1], 0xff
jne 0x468be8
cmp byte [esi + 2], 0x25
je 0x468bf5
cmp ebx, 5
jae 0x468c2d
mov ebx, dword [ebp - 8]
jmp 0x468b40
cmp ebx, 5
jae 0x468c23
nop word [eax + eax]
push edi
call fcn.00468530
add esp, 4
test eax, eax
je 0x468ce5
add edi, eax
mov ebx, edi
sub ebx, dword [ebp + 0x14]
cmp ebx, 5
jb 0x468c00
mov edx, dword [ebp - 4]
mov ch, byte [ebp + 0xf]
cmp dword [ebp + 0x18], 8
ja 0x468ce5
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jbe 0x468c36
int3
mov esi, dword [ebp + 0x14]
lea eax, [edx + 0x20]
push ebx
push esi
push eax
mov byte [edx + 0x1e], ch
mov byte [edx + 0x36], bl
call fcn.004d4210
add esp, 0xc
cmp ebx, 0x19
jbe 0x468c5c
mov esi, 6
jmp 0x468cfa
mov eax, dword [ebp - 4]
lea edx, [ebx + esi]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x44], ecx
movzx ecx, byte [eax + 0x1e]
add ecx, eax
mov dword [eax + 0x40], edx
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
lea eax, [ecx + 5]
mov dword [ecx + 1], edx
push dword [ebp - 0xc]
push eax
call fcn.004684f0
add esp, 8
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x468cae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x468cfa
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
pop edi
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0xc], esi
mov dword [ecx + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0x14], eax
mov eax, dword [0x596878]
pop esi
mov dword [ecx], eax
xor eax, eax
mov dword [0x596878], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [0x596860], 0
mov esi, 9
jne 0x468d00
jmp 0x468cfa
mov esi, 8
mov dword [0x59686c], esi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x468d1d
push eax
call fcn.004684c0
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
je 0x468d1d
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x468d2f
push 0x18
push eax
call fcn.004d24a7
add esp, 8
mov eax, dword [ebp + 8]
mov dword [0x596870], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14