Function at 0x10003df0
Capabilities:
Allocate or change rwx memory
Check for software breakpoints
Execute shellcode via indirect call

Disassembly:
sub esp, 0x98
mov eax, dword [0x10008040]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
xor esi, esi
mov dword [esp + 0x2c], edi
test ebx, ebx
jne 0x10003e1d
lea eax, [edx + 0x57]
jmp 0x10004139
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100084a0], eax
je 0x10003e35
mov eax, 0x10dd
jmp 0x10004139
mov eax, dword [0x1000849c]
test eax, eax
jne 0x10004139
test edi, edi
je 0x10003e5c
mov ecx, dword [edi]
test ecx, ecx
jne 0x10003e66
mov dword [0x1000849c], 6
mov dword [0x100084a8], edi
mov eax, 6
jmp 0x10004139
push ebp
xor ebp, ebp
call fcn.10003830
mov edi, eax
mov ecx, ebx
mov dword [esp + 0x14], edi
call fcn.10003830
mov dword [esp + 0x20], eax
cmp eax, edi
jne 0x10003e96
cmp dword [0x10008478], esi
jne 0x1000412d
xor edx, edx
jmp 0x10004107
push 0x18
call fcn.10004896
add esp, 4
mov ebp, eax
mov ecx, edi
mov dword [esp + 0x34], ebp
call fcn.10003560
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
jne 0x10003ebf
lea esi, [eax + 8]
jmp 0x10004107
lea eax, [edx + 0x38]
mov dword [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x28], eax
mov esi, edi
movq qword [eax], xmm0
mov ebx, edx
mov ebp, esi
jmp 0x10003ee4
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x60]
mov dword [esp + 0x38], 0
test ebx, ebx
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x24]
mov dword [esp + 0x40], 0
cmovne ecx, ebx
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov edi, esi
mov dword [esp + 0x44], 0
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x24], 0
test esi, esi
jne 0x10003f4d
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10003f65
movzx eax, byte [esi]
push esi
push ecx
lea ecx, [esp + 0x40]
lea eax, [eax*8 + 0x10009830]
push eax
mov eax, dword [eax + 4]
call eax
mov esi, eax
mov edx, dword [esp + 0x10]
mov eax, esi
sub eax, edi
add eax, dword [esp + 0x24]
add ebx, eax
mov dword [esp + 0x1c], ebx
mov ebx, esi
mov cl, byte [esp + 0x1c]
sub ebx, ebp
sub cl, dl
mov al, bl
shl cl, 3
and al, 7
or cl, al
mov eax, dword [esp + 0x28]
mov byte [eax], cl
inc eax
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ecx
cmp ecx, 8
jae 0x10003ff8
mov al, byte [edi]
cmp al, 0xeb
je 0x10003ff8
cmp al, 0xe9
je 0x10003ff8
cmp al, 0xe0
je 0x10003ff8
cmp al, 0xc2
je 0x10003ff8
cmp al, 0xc3
je 0x10003ff8
cmp al, 0xcc
je 0x10003ff8
cmp al, 0xf3
jne 0x10004061
cmp byte [edi + 1], 0xc3
je 0x10003ff8
cmp al, 0x26
je 0x10003fe3
cmp al, 0x2e
je 0x10003fe3
cmp al, 0x36
je 0x10003fe3
cmp al, 0x3e
je 0x10003fe3
cmp al, 0x64
je 0x10003fe3
cmp al, 0x65
jne 0x10003fef
cmp byte [edi + 1], 0xff
jne 0x10003fef
cmp byte [edi + 2], 0x25
je 0x10003ff8
cmp ebx, 5
jb 0x10003ee0
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
cmp ebx, 5
jae 0x10004027
mov ecx, esi
call fcn.10003370
test eax, eax
je 0x100040f5
add esi, eax
mov ebx, esi
sub ebx, edi
cmp ebx, 5
jb 0x10004005
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp ecx, 8
ja 0x100040f5
mov eax, dword [esp + 0x1c]
lea ecx, [edx + 0x1e]
cmp eax, ecx
jbe 0x1000403c
int3
sub al, dl
mov byte [edx + 0x36], bl
push ebx
mov byte [edx + 0x1e], al
lea eax, [edx + 0x20]
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp ebx, 0x19
jbe 0x10004072
mov esi, 6
jmp 0x10004103
cmp al, 0xff
jne 0x10003fcb
cmp byte [edi + 1], 0x25
jmp 0x10003fed
mov eax, dword [esp + 0x20]
lea esi, [ebx + edi]
mov edi, dword [esp + 0x10]
movzx ecx, byte [edi + 0x1e]
lea edx, [edi + 0x1e]
add ecx, edi
mov dword [edi + 0x44], eax
mov dword [edi + 0x40], esi
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub esi, eax
mov dword [ecx + 1], esi
add ecx, 5
call fcn.10003340
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push eax
push 0x40
push ebx
mov ebx, dword [esp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100040c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10004103
mov eax, dword [esp + 0x30]
mov dword [ebp + 8], eax
mov dword [ebp + 4], 0
mov dword [ebp + 0x10], edi
mov dword [ebp + 0xc], ebx
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0x14], eax
mov eax, dword [0x100084b4]
mov dword [ebp], eax
xor eax, eax
mov dword [0x100084b4], ebp
jmp 0x10004138
cmp dword [0x10008478], 0
mov esi, 9
jne 0x10004113
mov edx, dword [esp + 0x10]
mov dword [0x1000849c], esi
test edx, edx
je 0x1000411e
jmp 0x10004117
mov edx, dword [esp + 0x10]
mov ecx, edx
call fcn.10003800
test ebp, ebp
je 0x1000412d
push 0x18
push ebp
call fcn.10004be5
add esp, 8
mov eax, dword [esp + 0x30]
mov dword [0x100084a8], eax
mov eax, esi
pop ebp
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10004888
add esp, 0x98
ret 0xc