Function at 0x419310
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, 0x2c
push esi
xor esi, esi
push edi
test eax, eax
je 0x419323
mov dword [eax], esi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x41932c
mov dword [edi], esi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x419335
mov dword [eax], esi
cmp dword [ebp + 0xc], esi
jne 0x419347
pop edi
mov eax, 0x57
pop esi
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x517e30], eax
je 0x419362
pop edi
mov eax, 0x10dd
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x517e34]
test eax, eax
jne 0x41971a
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x41938c
mov eax, dword [ecx]
test eax, eax
jne 0x419399
mov dword [0x517e34], 6
mov dword [0x517e38], ecx
pop edi
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret 0x14
push ebx
xor ebx, ebx
push ebx
push eax
mov dword [ebp - 0xc], ebx
call fcn.00419740
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
call fcn.00419740
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], ecx
cmp ecx, eax
jne 0x4193cf
cmp dword [0x517e28], ebx
jne 0x41970f
jmp 0x419729
test edi, edi
je 0x4193d5
mov dword [edi], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4193de
mov dword [eax], ecx
push 0x18
call fcn.004a0e21
mov esi, eax
add esp, 4
mov dword [ebp - 0xc], esi
test esi, esi
je 0x419724
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.00418ed0
mov ecx, dword [0x517e24]
add esp, 0xc
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x517e20]
test ecx, ecx
jne 0x41942a
test eax, eax
je 0x41943d
mov ecx, eax
mov dword [0x517e24], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x41943d
cmp edx, ebx
jb 0x41943d
cmp edx, edi
jbe 0x4194d3
mov ecx, eax
mov dword [0x517e24], ecx
test eax, eax
je 0x419474
mov edx, eax
nop dword [eax + eax]
test eax, eax
je 0x419463
mov eax, dword [edx + 8]
test eax, eax
je 0x419463
cmp eax, ebx
jb 0x419463
cmp eax, edi
jbe 0x4194d3
mov ecx, dword [ecx + 4]
mov edx, ecx
mov dword [0x517e24], ecx
mov eax, ecx
test edx, edx
jne 0x419450
push edi
movzx eax, si
mov ecx, esi
sub ecx, eax
push ebx
push ecx
call fcn.00418d50
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x419722
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov esi, 0x38b
mov eax, dword [0x517e20]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x517e24], ecx
mov dword [0x517e20], ecx
nop
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x4194c0
mov esi, dword [ebp + 0x14]
mov dword [ecx + 8], edx
mov ebx, dword [ecx + 8]
cmp ebx, dword [ebp + 0xc]
jb 0x419722
cmp ebx, edi
ja 0x419722
mov eax, dword [ebx + 0x40]
push 0x48
push 0xcc
push ebx
mov dword [ecx + 8], eax
call fcn.004a3e00
add esp, 0xc
test ebx, ebx
je 0x419724
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41950e
mov dword [eax], ebx
lea eax, [ebx + 0x38]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
movq qword [eax], xmm0
lea ecx, [ebx + 0x1e]
mov eax, ebx
mov dword [ebp - 0x20], ecx
mov edi, esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ecx
mov byte [ebp + 0xf], bl
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push 0
push edi
lea ecx, [ebp - 0x10]
mov esi, edi
push ecx
push eax
call fcn.0041a560
mov ecx, dword [ebp - 8]
mov edi, eax
mov eax, dword [ebp - 0x14]
mov edx, edi
sub edx, dword [ebp + 0x14]
sub eax, esi
inc dword [ebp - 4]
add eax, edi
add ecx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], ecx
mov al, dl
mov ch, cl
and al, 7
sub ch, byte [ebp + 0xf]
mov cl, ch
mov byte [ebp + 0x1b], ch
shl cl, 3
or cl, al
mov eax, dword [ebp - 0x18]
mov byte [eax], cl
inc eax
cmp dword [ebp - 4], 8
mov dword [ebp - 0x18], eax
jae 0x4195eb
mov al, byte [esi]
cmp al, 0xeb
je 0x4195eb
cmp al, 0xe9
je 0x4195eb
cmp al, 0xe0
je 0x4195eb
cmp al, 0xc2
je 0x4195eb
cmp al, 0xc3
je 0x4195eb
cmp al, 0xcc
je 0x4195eb
cmp al, 0xf3
jne 0x4195b1
cmp byte [esi + 1], 0xc3
je 0x4195eb
cmp al, 0xff
jne 0x4195bb
cmp byte [esi + 1], 0x25
jmp 0x4195dd
cmp al, 0x26
je 0x4195d3
cmp al, 0x2e
je 0x4195d3
cmp al, 0x36
je 0x4195d3
cmp al, 0x3e
je 0x4195d3
cmp al, 0x64
je 0x4195d3
cmp al, 0x65
jne 0x4195df
cmp byte [esi + 1], 0xff
jne 0x4195df
cmp byte [esi + 2], 0x25
je 0x4195eb
mov eax, dword [ebp - 8]
cmp edx, 5
jb 0x419535
cmp edx, 5
jae 0x419613
push edi
call fcn.00418fd0
add esp, 4
test eax, eax
je 0x4196d9
add edi, eax
mov edx, edi
sub edx, dword [ebp + 0x14]
mov dword [ebp - 0x1c], edx
cmp edx, 5
jb 0x4195f0
mov ch, byte [ebp + 0x1b]
cmp dword [ebp - 4], 8
ja 0x4196d9
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jbe 0x419626
int3
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp + 0x14]
push edx
push edi
mov byte [eax], ch
lea eax, [ebx + 0x20]
push eax
mov byte [ebx + 0x36], dl
call fcn.004a4660
mov esi, dword [ebp - 0x1c]
add esp, 0xc
cmp esi, 0x19
jbe 0x419651
mov esi, 6
jmp 0x419729
mov eax, dword [ebp - 0x28]
lea edx, [esi + edi]
mov dword [ebx + 0x44], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x40], edx
movzx ecx, byte [eax]
add ecx, ebx
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
lea eax, [ecx + 5]
mov dword [ecx + 1], edx
push dword [ebp - 0x10]
push eax
call fcn.00418f90
add esp, 8
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4196a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x419729
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx + 4], 0
mov eax, dword [ebp - 0x24]
pop ebx
mov dword [ecx + 0x14], eax
mov eax, dword [0x517e40]
pop edi
mov dword [ecx], eax
xor eax, eax
mov dword [0x517e40], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp dword [0x517e28], 0
mov esi, 9
je 0x419729
mov edi, dword [ebp - 0xc]
push ebx
call fcn.00418f60
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
je 0x419700
mov dword [eax], 0
test edi, edi
je 0x41970f
push 0x18
push edi
call fcn.004a0e51
add esp, 8
mov eax, dword [ebp + 8]
mov dword [0x517e38], eax
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
xor ebx, ebx
mov esi, 8
mov edi, dword [ebp - 0xc]
mov dword [0x517e34], esi
test ebx, ebx
je 0x419700
jmp 0x4196ea