Function at 0x1046a42
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea esi, [ebp + 0xc]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x24]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x3c]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x40]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x48]
mov dword [ebp - 0x54], eax
xor eax, eax
mov esi, 0x1112850
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], 0x1003964
mov dword [ebp - 0x48], esi
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x19], al
mov dword [ebp - 0x24], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1046ade
test byte [eax + 0x1c], 1
je 0x1046ade
cmp byte [eax + 0x19], 4
jb 0x1046ade
push 0x1003920
push 0xf8
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
xor ecx, ecx
cmp dword [ebp - 0x3c], ecx
jne 0x1046af1
mov dword [ebp - 0x18], 0x80004003
jmp 0x1046dcd
cmp dword [ebp - 0x34], ecx
je 0x1046ae5
cmp dword [ebp - 0x38], ecx
je 0x1046ae5
cmp edi, ecx
je 0x1046ae5
push esi
mov dword [edi], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 8]
mov byte [ebp - 0x44], 1
test eax, eax
jne 0x1046b1f
mov dword [ebp - 0x18], 0x8078000a
jmp 0x1046dc8
cmp dword [ebp - 0x2c], 0
jne 0x1046b28
mov dword [ebp - 0x2c], eax
cmp byte [ebx + 0xc], 0
je 0x1046b72
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1046b66
test byte [eax + 0x1c], 1
je 0x1046b66
cmp byte [eax + 0x19], 2
jb 0x1046b66
push dword [ebx + 4]
push dword [ebx + 0x24]
push 0x1003920
push 0xf9
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109ba57
mov eax, dword [0x111124c]
mov dword [ebp - 0x18], 0x80780017
jmp 0x1046dcd
lea eax, [ebp - 0x20]
push eax
call fcn.010460e5
mov dword [ebp - 0x18], eax
test eax, eax
jge 0x1046bc3
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1046dcd
test byte [eax + 0x1c], 1
je 0x1046dcd
cmp byte [eax + 0x19], 2
jb 0x1046dcd
push dword [ebp - 0x18]
push 0x1003920
push 0xfa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x1046dc8
mov esi, dword [ebp - 0x20]
mov eax, dword [esi]
push esi
call dword [eax + 4]
push dword [ebp - 0x2c]
lea edi, [esi + 8]
mov ecx, edi
mov dword [ebp - 0x40], edi
call fcn.01018afd
push dword [ebp - 0x54]
mov ecx, edi
call fcn.0101915a
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x1046dc8
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push ecx
push 0x10137cc
push esi
call dword [eax]
mov dword [ebp - 0x18], eax
test eax, eax
jge 0x1046c3c
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1046dcd
test byte [eax + 0x1c], 1
je 0x1046dcd
cmp byte [eax + 0x19], 2
jb 0x1046dcd
push dword [ebp - 0x18]
push 0x1003920
push 0xfb
jmp 0x1046bb3
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x34]
call fcn.0107cfe1
mov dword [ebp - 0x18], eax
test eax, eax
jge 0x1046c85
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1046dcd
test byte [eax + 0x1c], 1
je 0x1046dcd
cmp byte [eax + 0x19], 2
jb 0x1046dcd
push dword [ebp - 0x18]
push 0x1003920
push 0xfc
jmp 0x1046bb3
mov eax, dword [ebx]
lea ecx, [ebp - 0x19]
push ecx
push 5
push dword [ebp - 0x24]
push ebx
call dword [eax + 0x34]
mov dword [ebp - 0x18], eax
test eax, eax
jge 0x1046cd1
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1046dcd
test byte [eax + 0x1c], 1
je 0x1046dcd
cmp byte [eax + 0x19], 2
jb 0x1046dcd
push dword [ebp - 0x18]
push 0x1003920
push 0xfd
jmp 0x1046bb3
push dword [ebp + 0x44]
mov ecx, dword [ebp - 0x20]
push dword [ebp + 0x38]
lea esi, [ebp - 0x14]
push dword [ebp + 0x34]
push dword [ebp + 0x30]
push dword [ebp - 0x38]
push dword [ebp + 0x28]
push dword [ebp - 0x24]
push dword [ebp - 0x3c]
push dword [ebp + 0x1c]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
call fcn.0105eb32
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x1046dc8
xor edi, edi
push edi
push edi
push dword [ebp - 0x20]
push 0x105d890
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x30], eax
cmp eax, edi
jne 0x1046d77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1046d62
test byte [eax + 0x1c], 1
je 0x1046d62
cmp byte [eax + 0x19], 2
jb 0x1046d62
push esi
push 0x1003920
push 0xfe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
cmp esi, edi
jle 0x1046d72
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 0x18], esi
jmp 0x1046dcd
mov byte [ebx + 0xc], 1
cmp dword [ebx + 0x1c], edi
jne 0x1046d85
cmp dword [ebx + 0x20], edi
je 0x1046d99
push 0x10044a4
push 0x1559
push 0x1003930
call fcn.0107b4be
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x20], eax
mov ecx, dword [eax]
push eax
mov dword [ebp - 0x20], edi
call dword [ecx + 4]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x50]
mov dword [ebx + 0x24], 5
mov dword [ecx], eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x28], edi
call fcn.0103794b
mov eax, dword [0x111124c]
cmp dword [ebp - 0x24], 0
je 0x1046de5
push dword [ebp - 0x24]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
and dword [ebp - 0x24], 0
mov eax, dword [0x111124c]
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x1046df7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x111124c]
cmp dword [ebp - 0x30], 0
je 0x1046e0b
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111124c]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1046e1d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x111124c]
cmp dword [ebp - 0x18], 0
jge 0x1046e53
cmp eax, 0x111124c
je 0x1046e7b
test byte [eax + 0x1c], 1
je 0x1046e53
cmp byte [eax + 0x19], 2
jb 0x1046e53
push dword [ebp - 0x18]
push 0x1003920
push 0xff
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1046e7b
test byte [eax + 0x1c], 1
je 0x1046e7b
cmp byte [eax + 0x19], 4
jb 0x1046e7b
push 0x1003920
push 0x100
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
lea ecx, [ebp - 0x4c]
call fcn.0103797b
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 0x44