Function at 0x1046fb0
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 [0x111024c]
mov edi, 0x111024c
cmp eax, edi
je 0x1046ff7
test byte [eax + 0x1c], 1
je 0x1046ff7
cmp byte [eax + 0x19], 4
jb 0x1046ff7
push 0x1003928
push 0x171
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
lea eax, [ebp - 0xc]
push eax
call fcn.010462d9
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x10470a7
mov eax, dword [0x111024c]
cmp eax, edi
je 0x104703d
test byte [eax + 0x1c], 1
je 0x104703d
cmp byte [eax + 0x19], 2
jb 0x104703d
push dword [ebp - 4]
push 0x1003928
push 0x172
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x1047052
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x111024c]
cmp dword [ebp - 0x10], 0
je 0x1047066
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111024c]
test edi, edi
je 0x1047075
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [0x111024c]
pop edi
pop esi
pop ebx
cmp eax, 0x111024c
je 0x10470a0
test byte [eax + 0x1c], 1
je 0x10470a0
cmp byte [eax + 0x19], 4
jb 0x10470a0
push 0x1003928
push 0x175
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp - 4]
leave
ret 0x30
mov edi, dword [ebp - 0xc]
mov eax, dword [edi]
push edi
call dword [eax + 4]
push dword [ebp + 0x28]
lea ebx, [edi + 4]
mov ecx, ebx
call fcn.01018ab0
push dword [ebp + 0x2c]
mov ecx, ebx
call fcn.0101910d
mov dword [ebp - 4], eax
test eax, eax
jl 0x104711f
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push 0x1013744
push edi
call dword [eax]
mov dword [ebp - 4], eax
test eax, eax
jge 0x1047129
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1047040
test byte [eax + 0x1c], 1
je 0x1047040
cmp byte [eax + 0x19], 2
jb 0x1047040
push dword [ebp - 4]
push 0x1003928
push 0x173
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
jmp 0x1047040
push dword [ebp + 0x30]
mov al, byte [ebp + 0x24]
and al, 1
movzx eax, al
push eax
push 0
push dword [ebp + 0x1c]
mov ecx, edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x20]
push esi
call fcn.0104d0f6
mov dword [ebp - 4], eax
test eax, eax
jl 0x104711f
xor eax, eax
push eax
push eax
push edi
push 0x104fd56
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10471c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10471af
test byte [eax + 0x1c], 1
je 0x10471af
cmp byte [eax + 0x19], 2
jb 0x10471af
push esi
push 0x1003928
push 0x174
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
test esi, esi
jle 0x10471bf
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 4], esi
jmp 0x1047040
cmp dword [esi + 0x1c], 0
mov byte [esi + 0xc], 1
jne 0x10471d7
cmp dword [esi + 0x20], 0
je 0x10471eb
push 0x10044ac
push 0x1d47
push 0x1003938
call fcn.0107b644
mov eax, dword [ebp - 8]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov ecx, dword [eax]
push eax
xor edi, edi
call dword [ecx + 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x34]
and dword [ebp - 8], edi
mov dword [esi + 0x24], 2
mov dword [ecx], eax
jmp 0x104711f