Function at 0x10465ef
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x111127c]
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]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x20]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0xbc], eax
xor eax, eax
mov esi, 0x1112850
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xc8], 0x1003964
mov dword [ebp - 0xc4], esi
mov byte [ebp - 0xc0], 0
mov byte [ebp - 0xa5], 0
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb8], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1046698
test byte [eax + 0x1c], 1
je 0x1046698
cmp byte [eax + 0x19], 4
jb 0x1046698
push 0x1003920
push 0xe1
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
test edi, edi
jne 0x10466ab
mov dword [ebp - 0xa4], 0x80004003
jmp 0x1046959
and dword [edi], 0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 8]
mov byte [ebp - 0xc0], 1
test eax, eax
jne 0x10466d2
mov dword [ebp - 0xa4], 0x8078000a
jmp 0x1046954
cmp dword [ebp - 0xb0], 0
jne 0x10466e1
mov dword [ebp - 0xb0], eax
cmp byte [ebx + 0xc], 0
je 0x104672e
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x104671f
test byte [eax + 0x1c], 1
je 0x104671f
cmp byte [eax + 0x19], 2
jb 0x104671f
push dword [ebx + 4]
push dword [ebx + 0x24]
push 0x1003920
push 0xe2
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109ba57
mov eax, dword [0x111124c]
mov dword [ebp - 0xa4], 0x80780017
jmp 0x1046959
push 0x8c
lea eax, [ebp - 0xa0]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
sub esp, 0x10
mov edi, esp
push dword [ebp - 0xb0]
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]
call dword [eax + 0x2c]
mov dword [ebp - 0xa4], eax
test eax, eax
jl 0x1046954
lea eax, [ebp - 0xb4]
push eax
mov byte [ebp - 0xa5], 1
call fcn.0104601e
mov dword [ebp - 0xa4], eax
test eax, eax
jge 0x10467d7
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1046959
test byte [eax + 0x1c], 1
je 0x1046959
cmp byte [eax + 0x19], 2
jb 0x1046959
push dword [ebp - 0xa4]
push 0x1003920
push 0xe3
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x1046954
mov esi, dword [ebp - 0xb4]
mov eax, dword [esi]
push esi
call dword [eax + 4]
push dword [ebp - 0xb0]
lea edi, [esi + 4]
mov ecx, edi
call fcn.01018afd
push dword [ebp - 0xbc]
mov ecx, edi
call fcn.0101915a
mov dword [ebp - 0xa4], eax
test eax, eax
jl 0x1046954
mov eax, dword [esi]
lea ecx, [ebp - 0xac]
push ecx
push 0x10137ac
push esi
call dword [eax]
mov dword [ebp - 0xa4], eax
test eax, eax
jge 0x1046862
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1046959
test byte [eax + 0x1c], 1
je 0x1046959
cmp byte [eax + 0x19], 2
jb 0x1046959
push dword [ebp - 0xa4]
push 0x1003920
push 0xe4
jmp 0x10467c7
lea eax, [ebp - 0xa0]
push eax
push ebx
mov ecx, esi
call fcn.01050b14
mov dword [ebp - 0xa4], eax
xor eax, eax
cmp dword [ebp - 0xa4], eax
jl 0x1046954
push eax
push eax
push esi
push 0x10518e2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor esi, esi
mov dword [ebp - 0xb8], eax
cmp eax, esi
jne 0x10468f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10468dc
test byte [eax + 0x1c], 1
je 0x10468dc
cmp byte [eax + 0x19], 2
jb 0x10468dc
push edi
push 0x1003920
push 0xe5
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
cmp edi, esi
jle 0x10468ec
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp - 0xa4], edi
jmp 0x1046959
mov byte [ebx + 0xc], 1
cmp dword [ebx + 0x1c], esi
jne 0x1046902
cmp dword [ebx + 0x20], esi
je 0x1046916
push 0x10044a4
push 0x12fe
push 0x1003930
call fcn.0107b4be
mov eax, dword [ebp - 0xac]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], eax
mov ecx, dword [eax]
push eax
mov dword [ebp - 0xb4], esi
call dword [ecx + 4]
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xcc]
mov dword [ebx + 0x24], 3
mov dword [ecx], eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xac], esi
call fcn.0103794b
mov eax, dword [0x111124c]
mov ecx, dword [ebp - 0xac]
test ecx, ecx
je 0x104696e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x111124c]
cmp dword [ebp - 0xb8], 0
je 0x1046988
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111124c]
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
je 0x104699d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x111124c]
cmp byte [ebp - 0xa5], 0
je 0x10469b7
lea eax, [ebp - 0xa0]
push eax
call fcn.01087d19
mov eax, dword [0x111124c]
cmp dword [ebp - 0xa4], 0
jge 0x10469f3
cmp eax, 0x111124c
je 0x1046a1b
test byte [eax + 0x1c], 1
je 0x10469f3
cmp byte [eax + 0x19], 2
jb 0x10469f3
push dword [ebp - 0xa4]
push 0x1003920
push 0xe6
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1046a1b
test byte [eax + 0x1c], 1
je 0x1046a1b
cmp byte [eax + 0x19], 4
jb 0x1046a1b
push 0x1003920
push 0xe7
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
lea ecx, [ebp - 0xc8]
call fcn.0103797b
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 0x20