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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10191140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, edx
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], ebx
test eax, eax
jne 0x1003ddc7
pop edi
lea eax, [edx + 0x57]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100df772
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10196478], eax
je 0x1003ddec
pop edi
mov eax, 0x10dd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100df772
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x10195c04]
test eax, eax
jne 0x1003e2a0
test ebx, ebx
jne 0x1003de12
pop edi
lea eax, [ebx + 6]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100df772
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [ebx]
test esi, esi
jne 0x1003de3f
lea eax, [esi + 6]
mov dword [0x10196480], ebx
pop esi
pop edi
mov dword [0x10195c04], 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100df772
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
xor ebx, ebx
cmp byte [esi], 0xff
mov dword [ebp - 0x24], eax
jne 0x1003de69
cmp byte [esi + 1], 0x25
jne 0x1003de69
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0x10], eax
call fcn.1003d2f0
test al, al
je 0x1003de69
mov esi, dword [ebp - 0x10]
mov esi, dword [esi]
cmp byte [esi], 0xeb
jne 0x1003deaa
movsx eax, byte [esi + 1]
add eax, 2
add esi, eax
mov cl, byte [esi]
lea eax, [esi + 1]
cmp cl, 0xff
jne 0x1003dea0
cmp byte [eax], 0x25
jne 0x1003dea0
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0x10], eax
call fcn.1003d2f0
test al, al
je 0x1003deaa
mov esi, dword [ebp - 0x10]
mov esi, dword [esi]
jmp 0x1003deaa
cmp cl, 0xe9
jne 0x1003deaa
add esi, 5
add esi, dword [eax]
mov ecx, dword [ebp - 0x18]
cmp byte [ecx], 0xff
jne 0x1003ded6
cmp byte [ecx + 1], 0x25
jne 0x1003ded6
mov eax, dword [ecx + 2]
mov edx, eax
mov dword [ebp - 0x10], eax
call fcn.1003d2f0
test al, al
je 0x1003ded3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dword [ebp - 0x18], ecx
jmp 0x1003ded6
mov ecx, dword [ebp - 0x18]
cmp byte [ecx], 0xeb
jne 0x1003df23
movsx eax, byte [ecx + 1]
add eax, 2
add ecx, eax
mov dword [ebp - 0x18], ecx
mov dl, byte [ecx]
lea eax, [ecx + 1]
cmp dl, 0xff
jne 0x1003df11
cmp byte [eax], 0x25
jne 0x1003df11
mov eax, dword [ecx + 2]
mov edx, eax
mov dword [ebp - 0x10], eax
call fcn.1003d2f0
test al, al
je 0x1003df20
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dword [ebp - 0x18], ecx
jmp 0x1003df23
cmp dl, 0xe9
jne 0x1003df23
add ecx, 5
add ecx, dword [eax]
mov dword [ebp - 0x18], ecx
jmp 0x1003df23
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
jne 0x1003df38
cmp dword [0x10195638], ebx
jne 0x1003e295
jmp 0x1003e255
push 0x18
call fcn.100df7b6
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.1003d3c0
mov ecx, dword [0x1019647c]
add esp, 8
mov edi, dword [ebp - 0x20]
mov eax, dword [0x10196484]
test ecx, ecx
jne 0x1003df71
test eax, eax
je 0x1003df89
mov ecx, eax
mov dword [0x1019647c], ecx
mov edx, dword [ecx + 8]
mov ebx, dword [ebp - 0x14]
test edx, edx
je 0x1003df8c
cmp edx, ebx
jb 0x1003df8c
cmp edx, edi
jbe 0x1003e018
jmp 0x1003df8c
mov ebx, dword [ebp - 0x14]
mov ecx, eax
mov dword [0x1019647c], ecx
test eax, eax
je 0x1003dfba
mov edx, eax
mov eax, dword [edx + 8]
test eax, eax
je 0x1003dfa9
cmp eax, ebx
jb 0x1003dfa9
cmp eax, edi
jbe 0x1003e018
mov ecx, dword [ecx + 4]
mov eax, ecx
mov dword [0x1019647c], ecx
mov edx, ecx
test eax, eax
jne 0x1003df9a
mov ecx, esi
mov edx, ebx
push edi
and ecx, 0xffff0000
call fcn.1003d6b0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1003e24e
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov edi, 0x38b
mov eax, dword [0x10196484]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x1019647c], ecx
mov dword [0x10196484], ecx
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub edi, 1
jne 0x1003e005
mov edi, dword [ebp - 0x20]
mov dword [ecx + 8], edx
mov ebx, dword [ecx + 8]
cmp ebx, dword [ebp - 0x14]
jb 0x1003e24e
cmp ebx, edi
ja 0x1003e24e
mov eax, dword [ebx + 0x40]
push 0x48
push 0xcc
push ebx
mov dword [ecx + 8], eax
call fcn.100e19a0
add esp, 0xc
test ebx, ebx
je 0x1003e250
lea eax, [ebx + 0x38]
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x10], eax
movq qword [eax], xmm0
lea ecx, [ebx + 0x1e]
mov eax, ebx
mov dword [ebp - 0x2c], ecx
mov edx, esi
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x19], bl
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push ecx
push ecx
push edx
mov ecx, eax
mov edi, edx
call fcn.1003e2c0
mov ecx, dword [ebp - 0x28]
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ebx, edx
sub eax, edi
sub ebx, esi
add eax, edx
add ecx, eax
mov al, bl
mov dword [ebp - 0x28], ecx
and al, 7
sub cl, byte [ebp - 0x19]
shl cl, 3
or cl, al
mov eax, dword [ebp - 0x10]
mov byte [eax], cl
inc eax
mov ecx, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], ecx
cmp ecx, 8
jae 0x1003e115
mov al, byte [edi]
cmp al, 0xeb
je 0x1003e115
cmp al, 0xe9
je 0x1003e115
cmp al, 0xe0
je 0x1003e115
cmp al, 0xc2
je 0x1003e115
cmp al, 0xc3
je 0x1003e115
cmp al, 0xcc
je 0x1003e115
cmp al, 0xf3
jne 0x1003e182
cmp byte [edi + 1], 0xc3
je 0x1003e115
cmp al, 0x26
je 0x1003e0fd
cmp al, 0x2e
je 0x1003e0fd
cmp al, 0x36
je 0x1003e0fd
cmp al, 0x3e
je 0x1003e0fd
cmp al, 0x64
je 0x1003e0fd
cmp al, 0x65
jne 0x1003e109
cmp byte [edi + 1], 0xff
jne 0x1003e109
cmp byte [edi + 2], 0x25
je 0x1003e115
mov eax, dword [ebp - 0x28]
cmp ebx, 5
jb 0x1003e071
mov dword [ebp - 0x10], edx
cmp ebx, 5
jae 0x1003e143
nop dword [eax]
mov ecx, edx
call fcn.1003d450
test eax, eax
je 0x1003e23b
mov edx, dword [ebp - 0x10]
add edx, eax
mov ebx, edx
mov dword [ebp - 0x10], edx
sub ebx, esi
cmp ebx, 5
jb 0x1003e120
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
ja 0x1003e23b
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
cmp ecx, edi
jbe 0x1003e157
int3
mov eax, dword [ebp - 0x14]
sub cl, al
push ebx
push esi
mov byte [eax + 0x1e], cl
mov byte [eax + 0x36], bl
add eax, 0x20
push eax
call fcn.100e1420
add esp, 0xc
cmp ebx, 0x19
jbe 0x1003e193
mov ebx, dword [ebp - 0x14]
mov edi, 6
jmp 0x1003e255
cmp al, 0xff
jne 0x1003e0e5
cmp byte [edi + 1], 0x25
jmp 0x1003e107
mov eax, dword [ebp - 0x14]
lea edx, [esi + ebx]
mov ecx, dword [ebp - 0x18]
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
mov eax, edi
mov dword [ecx + 1], edx
add ecx, 5
sub eax, ecx
xor edx, edx
cmp ecx, edi
cmova eax, edx
test eax, eax
je 0x1003e1d4
push eax
push 0xcc
push ecx
call fcn.100e19a0
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 0x1003e1fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x14]
mov edi, eax
jmp 0x1003e255
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x10], eax
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 [0x1019648c]
pop edi
mov dword [ecx], eax
xor eax, eax
mov dword [0x1019648c], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100df772
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x10195638], 0
mov edi, 9
mov ebx, dword [ebp - 0x14]
jne 0x1003e265
jmp 0x1003e255
xor ebx, ebx
mov edi, 8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov dword [0x10195c04], edi
test ebx, ebx
je 0x1003e286
push 0x48
push 0
mov esi, ebx
push ebx
and esi, 0xffff0000
call fcn.100e19a0
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 0x1003e295
push 0x18
push eax
call fcn.100df7a3
add esp, 8
mov eax, dword [ebp - 0x30]
mov dword [0x10196480], eax
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100df772
mov esp, ebp
pop ebp
ret 0xc