Function at 0x1047d3b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [0x111124c]
mov edi, 0x111124c
cmp eax, edi
je 0x1047d82
test byte [eax + 0x1c], 1
je 0x1047d82
cmp byte [eax + 0x19], 4
jb 0x1047d82
push 0x1003920
push 0x214
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
lea eax, [ebp - 0xc]
push eax
call fcn.01047291
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x1047e32
mov eax, dword [0x111124c]
cmp eax, edi
je 0x1047dc8
test byte [eax + 0x1c], 1
je 0x1047dc8
cmp byte [eax + 0x19], 2
jb 0x1047dc8
push dword [ebp - 4]
push 0x1003920
push 0x215
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x1047ddd
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x111124c]
cmp dword [ebp - 0x10], 0
je 0x1047df1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111124c]
test ebx, ebx
je 0x1047e00
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov eax, dword [0x111124c]
pop edi
pop esi
pop ebx
cmp eax, 0x111124c
je 0x1047e2b
test byte [eax + 0x1c], 1
je 0x1047e2b
cmp byte [eax + 0x19], 4
jb 0x1047e2b
push 0x1003920
push 0x219
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [ebp - 4]
leave
ret 0x44
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
push dword [ebp + 0x34]
lea edi, [ebx + 4]
mov ecx, edi
call fcn.01018afd
push dword [ebp + 0x38]
mov ecx, edi
call fcn.0101915a
mov dword [ebp - 4], eax
test eax, eax
jl 0x1047f1a
mov eax, dword [ebx]
lea ecx, [ebp - 8]
push ecx
push 0x10137bc
push ebx
call dword [eax]
mov dword [ebp - 4], eax
test eax, eax
jge 0x1047ea5
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1047dcb
test byte [eax + 0x1c], 1
je 0x1047dcb
cmp byte [eax + 0x19], 2
jb 0x1047dcb
push dword [ebp - 4]
push 0x1003920
push 0x216
jmp 0x1047f0f
push dword [ebp + 0x44]
mov ecx, ebx
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [ebp + 0x30]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x2c]
push esi
call fcn.01065e33
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], eax
jge 0x1047f24
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1047dcb
test byte [eax + 0x1c], 1
je 0x1047dcb
cmp byte [eax + 0x19], 2
jb 0x1047dcb
push dword [ebp - 4]
push 0x1003920
push 0x217
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
jmp 0x1047dcb
push eax
push eax
push ebx
push 0x104faf0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1047f8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1047f76
test byte [eax + 0x1c], 1
je 0x1047f76
cmp byte [eax + 0x19], 2
jb 0x1047f76
push esi
push 0x1003920
push 0x218
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
test esi, esi
jle 0x1047f86
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 4], esi
jmp 0x1047dcb
cmp dword [esi + 0x1c], 0
mov byte [esi + 0xc], 1
jne 0x1047f9e
cmp dword [esi + 0x20], 0
je 0x1047fb2
push 0x10044a4
push 0x2bc4
push 0x1003930
call fcn.0107b4be
mov eax, dword [ebp - 8]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov ecx, dword [eax]
push eax
xor ebx, ebx
call dword [ecx + 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x48]
and dword [ebp - 8], ebx
mov dword [esi + 0x24], 2
mov dword [ecx], eax
jmp 0x1047f1a