Function at 0x1047e7a
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 0x1047ec1
test byte [eax + 0x1c], 1
je 0x1047ec1
cmp byte [eax + 0x19], 4
jb 0x1047ec1
push 0x1003928
push 0x214
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
lea eax, [ebp - 0xc]
push eax
call fcn.010473a5
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x1047f71
mov eax, dword [0x111024c]
cmp eax, edi
je 0x1047f07
test byte [eax + 0x1c], 1
je 0x1047f07
cmp byte [eax + 0x19], 2
jb 0x1047f07
push dword [ebp - 4]
push 0x1003928
push 0x215
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x1047f1c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x111024c]
cmp dword [ebp - 0x10], 0
je 0x1047f30
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111024c]
test ebx, ebx
je 0x1047f3f
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov eax, dword [0x111024c]
pop edi
pop esi
pop ebx
cmp eax, 0x111024c
je 0x1047f6a
test byte [eax + 0x1c], 1
je 0x1047f6a
cmp byte [eax + 0x19], 4
jb 0x1047f6a
push 0x1003928
push 0x219
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
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.01018ab0
push dword [ebp + 0x38]
mov ecx, edi
call fcn.0101910d
mov dword [ebp - 4], eax
test eax, eax
jl 0x1048059
mov eax, dword [ebx]
lea ecx, [ebp - 8]
push ecx
push 0x1013744
push ebx
call dword [eax]
mov dword [ebp - 4], eax
test eax, eax
jge 0x1047fe4
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1047f0a
test byte [eax + 0x1c], 1
je 0x1047f0a
cmp byte [eax + 0x19], 2
jb 0x1047f0a
push dword [ebp - 4]
push 0x1003928
push 0x216
jmp 0x104804e
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.01065fa3
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], eax
jge 0x1048063
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1047f0a
test byte [eax + 0x1c], 1
je 0x1047f0a
cmp byte [eax + 0x19], 2
jb 0x1047f0a
push dword [ebp - 4]
push 0x1003928
push 0x217
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
jmp 0x1047f0a
push eax
push eax
push ebx
push 0x104fd56
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10480cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10480b5
test byte [eax + 0x1c], 1
je 0x10480b5
cmp byte [eax + 0x19], 2
jb 0x10480b5
push esi
push 0x1003928
push 0x218
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
test esi, esi
jle 0x10480c5
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 4], esi
jmp 0x1047f0a
cmp dword [esi + 0x1c], 0
mov byte [esi + 0xc], 1
jne 0x10480dd
cmp dword [esi + 0x20], 0
je 0x10480f1
push 0x10044ac
push 0x2bc4
push 0x1003938
call fcn.0107b644
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 0x1048059