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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1019d120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, edx
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], ebx
test eax, eax
jne 0x1003f3a7
pop edi
lea eax, [edx + 0x57]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100df0d4
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101a24f0], eax
je 0x1003f3cc
pop edi
mov eax, 0x10dd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100df0d4
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x101a24ac]
test eax, eax
jne 0x1003f897
test ebx, ebx
jne 0x1003f3f2
pop edi
lea eax, [ebx + 6]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100df0d4
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [ebx]
test esi, esi
jne 0x1003f41f
lea eax, [esi + 6]
mov dword [0x101a24f8], ebx
pop esi
pop edi
mov dword [0x101a24ac], 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100df0d4
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
xor ebx, ebx
cmp byte [esi], 0xff
mov dword [ebp - 0x24], eax
jne 0x1003f449
cmp byte [esi + 1], 0x25
jne 0x1003f449
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0x14], eax
call fcn.1003e8c0
test al, al
je 0x1003f449
mov esi, dword [ebp - 0x14]
mov esi, dword [esi]
cmp byte [esi], 0xeb
jne 0x1003f48a
movsx eax, byte [esi + 1]
add eax, 2
add esi, eax
mov cl, byte [esi]
lea eax, [esi + 1]
cmp cl, 0xff
jne 0x1003f480
cmp byte [eax], 0x25
jne 0x1003f480
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0x14], eax
call fcn.1003e8c0
test al, al
je 0x1003f48a
mov esi, dword [ebp - 0x14]
mov esi, dword [esi]
jmp 0x1003f48a
cmp cl, 0xe9
jne 0x1003f48a
add esi, 5
add esi, dword [eax]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx], 0xff
jne 0x1003f4b6
cmp byte [ecx + 1], 0x25
jne 0x1003f4b6
mov eax, dword [ecx + 2]
mov edx, eax
mov dword [ebp - 0x14], eax
call fcn.1003e8c0
test al, al
je 0x1003f4b3
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov dword [ebp - 0x1c], ecx
jmp 0x1003f4b6
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx], 0xeb
jne 0x1003f503
movsx eax, byte [ecx + 1]
add eax, 2
add ecx, eax
mov dword [ebp - 0x1c], ecx
mov dl, byte [ecx]
lea eax, [ecx + 1]
cmp dl, 0xff
jne 0x1003f4f1
cmp byte [eax], 0x25
jne 0x1003f4f1
mov eax, dword [ecx + 2]
mov edx, eax
mov dword [ebp - 0x14], eax
call fcn.1003e8c0
test al, al
je 0x1003f500
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov dword [ebp - 0x1c], ecx
jmp 0x1003f503
cmp dl, 0xe9
jne 0x1003f503
add ecx, 5
add ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
jmp 0x1003f503
mov ecx, dword [ebp - 0x1c]
cmp ecx, esi
jne 0x1003f518
cmp dword [0x101a16fc], ebx
jne 0x1003f88c
jmp 0x1003f84c
push 0x18
call fcn.100df118
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.1003e990
mov ecx, dword [0x101a24f4]
add esp, 8
mov eax, dword [0x101a24fc]
test ecx, ecx
jne 0x1003f54e
test eax, eax
je 0x1003f569
mov ecx, eax
mov dword [0x101a24f4], ecx
mov edx, dword [ecx + 8]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
test edx, edx
je 0x1003f56f
cmp edx, ebx
jb 0x1003f56f
cmp edx, edi
jbe 0x1003f603
jmp 0x1003f56f
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
mov ecx, eax
mov dword [0x101a24f4], ecx
test eax, eax
je 0x1003f59e
mov edx, eax
cmp dword [edx + 8], 0
je 0x1003f58d
cmp dword [edx + 8], ebx
jb 0x1003f58d
cmp dword [edx + 8], edi
jbe 0x1003f603
mov ecx, dword [ecx + 4]
mov eax, ecx
mov dword [0x101a24f4], ecx
mov edx, ecx
test eax, eax
jne 0x1003f57d
mov ecx, esi
mov edx, ebx
push edi
and ecx, 0xffff0000
call fcn.1003ec80
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1003f845
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov edi, 0x38b
mov eax, dword [0x101a24fc]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x101a24f4], ecx
mov dword [0x101a24fc], ecx
nop dword [eax]
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub edi, 1
jne 0x1003f5f0
mov edi, dword [ebp - 0x10]
mov dword [ecx + 8], edx
mov ebx, dword [ecx + 8]
cmp ebx, dword [ebp - 0x18]
jb 0x1003f845
cmp ebx, edi
ja 0x1003f845
mov eax, dword [ebx + 0x40]
push 0x48
push 0xcc
push ebx
mov dword [ecx + 8], eax
call fcn.100e1440
add esp, 0xc
test ebx, ebx
je 0x1003f847
lea eax, [ebx + 0x38]
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
movq qword [eax], xmm0
lea ecx, [ebx + 0x1e]
mov eax, ebx
mov dword [ebp - 0x30], ecx
mov edi, esi
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x1d], bl
mov dword [ebp - 0x10], ebx
nop dword [eax]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x28], edi
push ecx
push ecx
push edi
mov ecx, eax
mov dword [ebp - 0xc], 0
call fcn.1003f8b0
mov edx, dword [ebp - 0x28]
mov edi, eax
mov eax, dword [ebp - 0xc]
mov ebx, edi
mov ecx, dword [ebp - 0x2c]
sub eax, edx
inc dword [ebp - 0x18]
add eax, edi
add ecx, eax
sub ebx, esi
mov dword [ebp - 0x2c], ecx
mov al, bl
mov ch, cl
and al, 7
sub ch, byte [ebp - 0x1d]
mov cl, ch
mov byte [ebp - 0x1e], ch
shl cl, 3
or cl, al
mov eax, dword [ebp - 0x14]
mov byte [eax], cl
inc eax
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x14], eax
jae 0x1003f71a
mov cl, byte [edx]
cmp cl, 0xeb
je 0x1003f71a
cmp cl, 0xe9
je 0x1003f71a
cmp cl, 0xe0
je 0x1003f71a
cmp cl, 0xc2
je 0x1003f71a
cmp cl, 0xc3
je 0x1003f71a
cmp cl, 0xcc
je 0x1003f71a
lea eax, [edx + 1]
cmp cl, 0xf3
jne 0x1003f778
cmp byte [eax], 0xc3
je 0x1003f71a
cmp cl, 0x26
je 0x1003f703
cmp cl, 0x2e
je 0x1003f703
cmp cl, 0x36
je 0x1003f703
cmp cl, 0x3e
je 0x1003f703
cmp cl, 0x64
je 0x1003f703
cmp cl, 0x65
jne 0x1003f70e
cmp byte [eax], 0xff
jne 0x1003f70e
cmp byte [edx + 2], 0x25
je 0x1003f71a
mov eax, dword [ebp - 0x2c]
cmp ebx, 5
jb 0x1003f660
cmp ebx, 5
jae 0x1003f73d
nop
mov ecx, edi
call fcn.1003ea20
test eax, eax
je 0x1003f832
add edi, eax
mov ebx, edi
sub ebx, esi
cmp ebx, 5
jb 0x1003f720
mov ch, byte [ebp - 0x1e]
cmp dword [ebp - 0x18], 8
ja 0x1003f832
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], eax
jbe 0x1003f750
int3
mov edi, dword [ebp - 0x10]
push ebx
mov byte [eax], ch
push esi
lea eax, [edi + 0x20]
mov byte [edi + 0x36], bl
push eax
call fcn.100e0ec0
add esp, 0xc
cmp ebx, 0x19
jbe 0x1003f786
mov ebx, dword [ebp - 0x10]
mov edi, 6
jmp 0x1003f84c
cmp cl, 0xff
jne 0x1003f6e5
cmp byte [eax], 0x25
jmp 0x1003f70c
mov eax, dword [ebp - 0x1c]
lea edx, [esi + ebx]
mov dword [edi + 0x44], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x40], edx
mov dword [ebp - 0x28], 0
movzx ecx, byte [eax]
add ecx, edi
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
mov eax, dword [ebp - 0x30]
mov dword [ecx + 1], edx
add ecx, 5
sub eax, ecx
cmp ecx, dword [ebp - 0x30]
cmova eax, dword [ebp - 0x28]
test eax, eax
je 0x1003f7ce
push eax
push 0xcc
push ecx
call fcn.100e1440
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1003f7f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x10]
mov edi, eax
jmp 0x1003f84c
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x34]
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], edi
mov dword [ecx + 0xc], esi
mov dword [ecx + 4], 0
mov eax, dword [ebp - 8]
pop esi
mov dword [ecx + 0x14], eax
mov eax, dword [0x101a2504]
pop edi
mov dword [ecx], eax
xor eax, eax
mov dword [0x101a2504], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100df0d4
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x101a16fc], 0
mov edi, 9
mov ebx, dword [ebp - 0x10]
jne 0x1003f85c
jmp 0x1003f84c
xor ebx, ebx
mov edi, 8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov dword [0x101a24ac], edi
test ebx, ebx
je 0x1003f87d
push 0x48
push 0
mov esi, ebx
push ebx
and esi, 0xffff0000
call fcn.100e1440
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], ebx
test eax, eax
je 0x1003f88c
push 0x18
push eax
call fcn.100df105
add esp, 8
mov eax, dword [ebp - 0x34]
mov dword [0x101a24f8], eax
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100df0d4
mov esp, ebp
pop ebp
ret 0xc