Function at 0x1048616
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x111127c]
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], 0x1003964
mov dword [ebp - 0xbc], 0x1112850
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 [0x111124c]
cmp eax, 0x111124c
je 0x10486d7
test byte [eax + 0x1c], 1
je 0x10486d7
cmp byte [eax + 0x19], 4
jb 0x10486d7
push 0x1003920
push 0xd9
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
mov ecx, dword [ebp - 0xa8]
mov edi, dword [ebp - 0xac]
test edi, edi
jne 0x10486f0
mov dword [ebp - 0x94], 0x80004003
jmp 0x1048a0f
mov esi, 0x100cbcc
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 0x104870c
mov dword [ebp - 0x94], 0x80004003
jmp 0x1048a0a
and dword [ecx], 0
push 0x1112850
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov byte [ebp - 0xb8], 1
call fcn.0103ad6a
mov dword [ebp - 0x94], eax
test eax, eax
jl 0x1048a0a
cmp byte [ebx + 0xc], 0
je 0x1048783
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1048774
test byte [eax + 0x1c], 1
je 0x1048774
cmp byte [eax + 0x19], 2
jb 0x1048774
push dword [ebx + 4]
push dword [ebx + 0x24]
push 0x1003920
push 0xda
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109ba57
mov eax, dword [0x111124c]
mov dword [ebp - 0x94], 0x80780017
jmp 0x1048a0f
cmp byte [ebx + 0x14], 0
je 0x10487cd
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10487be
test byte [eax + 0x1c], 1
je 0x10487be
cmp byte [eax + 0x19], 2
jb 0x10487be
push dword [ebx + 4]
push 0x1003920
push 0xdb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
mov dword [ebp - 0x94], 0x8078011c
jmp 0x1048a0f
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 0x1048a0a
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.0104854f
mov dword [ebp - 0x94], eax
test eax, eax
jge 0x1048875
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1048a0f
test byte [eax + 0x1c], 1
je 0x1048a0f
cmp byte [eax + 0x19], 2
jb 0x1048a0f
push dword [ebp - 0x94]
push 0x1003920
push 0xdc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x1048a0a
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.01018afd
push dword [ebp - 0xb0]
mov ecx, edi
call fcn.0101915a
mov dword [ebp - 0x94], eax
test eax, eax
jl 0x1048a0a
mov eax, dword [esi]
lea ecx, [ebp - 0x9c]
push ecx
push 0x101379c
push esi
call dword [eax]
mov dword [ebp - 0x94], eax
test eax, eax
jge 0x10488fd
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1048a0f
test byte [eax + 0x1c], 1
je 0x1048a0f
cmp byte [eax + 0x19], 2
jb 0x1048a0f
push dword [ebp - 0x94]
push 0x1003920
push 0xdd
jmp 0x1048865
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.010367bf
mov dword [ebp - 0x94], eax
test eax, eax
jl 0x1048a0a
xor eax, eax
push eax
push eax
push esi
push 0x103403e
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor esi, esi
mov dword [ebp - 0xa4], eax
cmp eax, esi
jne 0x104899c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1048984
test byte [eax + 0x1c], 1
je 0x1048984
cmp byte [eax + 0x19], 2
jb 0x1048984
push edi
push 0x1003920
push 0xde
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
cmp edi, esi
jle 0x1048994
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp - 0x94], edi
jmp 0x1048a0f
mov byte [ebx + 0xc], 1
cmp dword [ebx + 0x1c], esi
jne 0x10489aa
cmp dword [ebx + 0x20], esi
je 0x10489be
push 0x10044a4
push 0x1219
push 0x1003930
call fcn.0107b4be
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.0103794b
mov eax, dword [0x111124c]
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
je 0x1048a24
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x111124c]
cmp dword [ebp - 0xa4], 0
je 0x1048a3e
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111124c]
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x1048a53
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x111124c]
cmp byte [ebp - 0x95], 0
je 0x1048a6d
lea eax, [ebp - 0x90]
push eax
call fcn.01090433
mov eax, dword [0x111124c]
cmp dword [ebp - 0x94], 0
jge 0x1048aa9
cmp eax, 0x111124c
je 0x1048ad1
test byte [eax + 0x1c], 1
je 0x1048aa9
cmp byte [eax + 0x19], 2
jb 0x1048aa9
push dword [ebp - 0x94]
push 0x1003920
push 0xdf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1048ad1
test byte [eax + 0x1c], 1
je 0x1048ad1
cmp byte [eax + 0x19], 4
jb 0x1048ad1
push 0x1003920
push 0xe0
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
lea ecx, [ebp - 0xc0]
call fcn.0103797b
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 0x38