Function at 0x1047755
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
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 - 0x2c], eax
mov eax, dword [ebp + 0x24]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x2c]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x30]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x3c]
mov dword [ebp - 0x48], eax
xor eax, eax
mov esi, 0x1111850
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x44], 0x100396c
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x3c], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10477eb
test byte [eax + 0x1c], 1
je 0x10477eb
cmp byte [eax + 0x19], 4
jb 0x10477eb
push 0x1003928
push 0x101
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [0x111024c]
xor ecx, ecx
cmp dword [ebp - 0x2c], ecx
jne 0x10477fe
mov dword [ebp - 0x18], 0x80004003
jmp 0x1047a37
cmp dword [ebp - 0x30], ecx
je 0x10477f2
cmp edi, ecx
je 0x10477f2
push esi
mov dword [edi], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 8]
mov byte [ebp - 0x3c], 1
test eax, eax
jne 0x1047827
mov dword [ebp - 0x18], 0x8078000a
jmp 0x1047a32
cmp dword [ebp - 0x28], 0
jne 0x1047830
mov dword [ebp - 0x28], eax
cmp byte [ebx + 0xc], 0
je 0x104787a
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x104786e
test byte [eax + 0x1c], 1
je 0x104786e
cmp byte [eax + 0x19], 2
jb 0x104786e
push dword [ebx + 4]
push dword [ebx + 0x24]
push 0x1003928
push 0x102
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01083f04
mov eax, dword [0x111024c]
mov dword [ebp - 0x18], 0x80780017
jmp 0x1047a37
lea eax, [ebp - 0x1c]
push eax
call fcn.01047218
mov dword [ebp - 0x18], eax
test eax, eax
jge 0x10478cb
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1047a37
test byte [eax + 0x1c], 1
je 0x1047a37
cmp byte [eax + 0x19], 2
jb 0x1047a37
push dword [ebp - 0x18]
push 0x1003928
push 0x103
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x1047a32
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi]
push esi
call dword [eax + 4]
push dword [ebp - 0x28]
lea edi, [esi + 4]
mov ecx, edi
mov dword [ebp - 0x34], edi
call fcn.01018ab0
push dword [ebp - 0x48]
mov ecx, edi
call fcn.0101910d
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x1047a32
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
push 0x1013764
push esi
call dword [eax]
mov dword [ebp - 0x18], eax
test eax, eax
jge 0x1047944
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1047a37
test byte [eax + 0x1c], 1
je 0x1047a37
cmp byte [eax + 0x19], 2
jb 0x1047a37
push dword [ebp - 0x18]
push 0x1003928
push 0x104
jmp 0x10478bb
push dword [ebp + 0x38]
mov ecx, dword [ebp - 0x1c]
push dword [ebp + 0x34]
lea esi, [ebp - 0x14]
push dword [ebp - 0x4c]
push dword [ebp - 0x30]
push dword [ebp + 0x20]
push dword [ebp - 0x2c]
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.0105b44a
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x1047a32
xor edi, edi
push edi
push edi
push dword [ebp - 0x1c]
push 0x10591cd
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x10479e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10479cc
test byte [eax + 0x1c], 1
je 0x10479cc
cmp byte [eax + 0x19], 2
jb 0x10479cc
push esi
push 0x1003928
push 0x105
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
cmp esi, edi
jle 0x10479dc
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 0x18], esi
jmp 0x1047a37
mov byte [ebx + 0xc], 1
cmp dword [ebx + 0x1c], edi
jne 0x10479ef
cmp dword [ebx + 0x20], edi
je 0x1047a03
push 0x10044ac
push 0x1627
push 0x1003938
call fcn.0107b644
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x20], eax
mov ecx, dword [eax]
push eax
mov dword [ebp - 0x1c], edi
call dword [ecx + 4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x38]
mov dword [ebx + 0x24], 4
mov dword [ecx], eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x20], edi
call fcn.01037a16
mov eax, dword [0x111024c]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1047a49
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x111024c]
cmp dword [ebp - 0x24], 0
je 0x1047a5d
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111024c]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1047a6f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x111024c]
cmp dword [ebp - 0x18], 0
jge 0x1047aa5
cmp eax, 0x111024c
je 0x1047acd
test byte [eax + 0x1c], 1
je 0x1047aa5
cmp byte [eax + 0x19], 2
jb 0x1047aa5
push dword [ebp - 0x18]
push 0x1003928
push 0x106
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1047acd
test byte [eax + 0x1c], 1
je 0x1047acd
cmp byte [eax + 0x19], 4
jb 0x1047acd
push 0x1003928
push 0x107
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
lea ecx, [ebp - 0x44]
call fcn.01037a46
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 0x38