Function at 0x1048755
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
push esi
push edi
lea esi, [ebp + 0xc]
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x3c]
mov ebx, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp + 0x28]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x20]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x38]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xac], eax
xor eax, eax
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xc0], 0x100396c
mov dword [ebp - 0xbc], 0x1111850
mov byte [ebp - 0xb8], 0
mov byte [ebp - 0x95], 0
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x9c], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1048816
test byte [eax + 0x1c], 1
je 0x1048816
cmp byte [eax + 0x19], 4
jb 0x1048816
push 0x1003928
push 0xd9
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [0x111024c]
mov ecx, dword [ebp - 0xa8]
mov edi, dword [ebp - 0xac]
test edi, edi
jne 0x104882f
mov dword [ebp - 0x94], 0x80004003
jmp 0x1048b4e
mov esi, 0x1007124
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test ecx, ecx
jne 0x104884b
mov dword [ebp - 0x94], 0x80004003
jmp 0x1048b49
and dword [ecx], 0
push 0x1111850
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov byte [ebp - 0xb8], 1
call fcn.0103ae35
mov dword [ebp - 0x94], eax
test eax, eax
jl 0x1048b49
cmp byte [ebx + 0xc], 0
je 0x10488c2
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10488b3
test byte [eax + 0x1c], 1
je 0x10488b3
cmp byte [eax + 0x19], 2
jb 0x10488b3
push dword [ebx + 4]
push dword [ebx + 0x24]
push 0x1003928
push 0xda
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01083f04
mov eax, dword [0x111024c]
mov dword [ebp - 0x94], 0x80780017
jmp 0x1048b4e
cmp byte [ebx + 0x14], 0
je 0x104890c
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10488fd
test byte [eax + 0x1c], 1
je 0x10488fd
cmp byte [eax + 0x19], 2
jb 0x10488fd
push dword [ebx + 4]
push 0x1003928
push 0xdb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
mov dword [ebp - 0x94], 0x8078011c
jmp 0x1048b4e
push 0x5c
lea eax, [ebp - 0x90]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
add esp, 0xc
lea edx, [ebp - 0x90]
push edx
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0xc]
mov dword [ebp - 0x94], eax
test eax, eax
jl 0x1048b49
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 0x95], 1
call dword [sym.imp.RPCRT4.dll_UuidCreate]
lea eax, [ebp - 0xa0]
push eax
call fcn.0104868e
mov dword [ebp - 0x94], eax
test eax, eax
jge 0x10489b4
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1048b4e
test byte [eax + 0x1c], 1
je 0x1048b4e
cmp byte [eax + 0x19], 2
jb 0x1048b4e
push dword [ebp - 0x94]
push 0x1003928
push 0xdc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x1048b49
mov esi, dword [ebp - 0xa0]
mov eax, dword [esi]
push esi
call dword [eax + 4]
push dword [ebx + 8]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.01018ab0
push dword [ebp - 0xb0]
mov ecx, edi
call fcn.0101910d
mov dword [ebp - 0x94], eax
test eax, eax
jl 0x1048b49
mov eax, dword [esi]
lea ecx, [ebp - 0x9c]
push ecx
push 0x1013724
push esi
call dword [eax]
mov dword [ebp - 0x94], eax
test eax, eax
jge 0x1048a3c
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1048b4e
test byte [eax + 0x1c], 1
je 0x1048b4e
cmp byte [eax + 0x19], 2
jb 0x1048b4e
push dword [ebp - 0x94]
push 0x1003928
push 0xdd
jmp 0x10489a4
push dword [ebp + 0x24]
lea eax, [ebp - 0x90]
push dword [ebp - 0xb4]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.01036897
mov dword [ebp - 0x94], eax
test eax, eax
jl 0x1048b49
xor eax, eax
push eax
push eax
push esi
push 0x1034116
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor esi, esi
mov dword [ebp - 0xa4], eax
cmp eax, esi
jne 0x1048adb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1048ac3
test byte [eax + 0x1c], 1
je 0x1048ac3
cmp byte [eax + 0x19], 2
jb 0x1048ac3
push edi
push 0x1003928
push 0xde
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
cmp edi, esi
jle 0x1048ad3
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp - 0x94], edi
jmp 0x1048b4e
mov byte [ebx + 0xc], 1
cmp dword [ebx + 0x1c], esi
jne 0x1048ae9
cmp dword [ebx + 0x20], esi
je 0x1048afd
push 0x10044ac
push 0x1219
push 0x1003938
call fcn.0107b644
mov eax, dword [ebp - 0x9c]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], eax
mov ecx, dword [eax]
push eax
mov dword [ebp - 0xa0], esi
call dword [ecx + 4]
mov edi, dword [ebp - 0xac]
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xa8]
and dword [ebp - 0x9c], 0
mov dword [ebx + 0x24], 1
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ecx], eax
lea ecx, [ebp - 0xc0]
call fcn.01037a16
mov eax, dword [0x111024c]
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
je 0x1048b63
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x111024c]
cmp dword [ebp - 0xa4], 0
je 0x1048b7d
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111024c]
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x1048b92
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x111024c]
cmp byte [ebp - 0x95], 0
je 0x1048bac
lea eax, [ebp - 0x90]
push eax
call fcn.01090538
mov eax, dword [0x111024c]
cmp dword [ebp - 0x94], 0
jge 0x1048be8
cmp eax, 0x111024c
je 0x1048c10
test byte [eax + 0x1c], 1
je 0x1048be8
cmp byte [eax + 0x19], 2
jb 0x1048be8
push dword [ebp - 0x94]
push 0x1003928
push 0xdf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1048c10
test byte [eax + 0x1c], 1
je 0x1048c10
cmp byte [eax + 0x19], 4
jb 0x1048c10
push 0x1003928
push 0xe0
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
lea ecx, [ebp - 0xc0]
call fcn.01037a46
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 0x38