Function at 0x1003bd10
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push edi
mov dword [ebp - 8], 0
push 0xc
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.10055aa0
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x1003bd4b
lea ecx, [ebp - 0x38]
push ecx
call fcn.1003bc20
add esp, 4
test eax, eax
je 0x1003bd4b
lea edx, [ebp - 0x38]
mov dword [ebp + 0xc], edx
call fcn.1003c720
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1003bece
movzx ecx, byte [ebp + 0x24]
test ecx, ecx
jne 0x1003bece
push 0
push 0x1007b9d8
call fcn.1004ba60
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1003bece
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
je 0x1003bdba
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
je 0x1003bde7
mov ecx, dword [ebp + 0x1c]
and ecx, 0x10000
je 0x1003bde1
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
jmp 0x1003bde7
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x25
call fcn.1003cb10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003be35
mov ecx, 9
mov esi, 0x1007bb48
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x5b], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x4b], eax
push 1
push 0x1007baf0
call fcn.1004b930
mov dword [ebp - 0x46], eax
push 1
push 0x1007ba80
call fcn.1004b930
mov dword [ebp - 0x41], eax
cmp dword [ebp - 4], 0
je 0x1003bece
lea ecx, [ebp - 0x20]
push ecx
push 0x25
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1003bec8
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 0x1c]
and edx, 4
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x1003beb9
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + edx - 0x2c]
mov dword [eax], ecx
lea edx, [ebp - 0x24]
push edx
push 0x20
push 0x25
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x1003bec6
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.1003cc70
jmp 0x1003bece
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x34], 0
je 0x1003bee7
mov ecx, dword [ebp - 0x34]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret