Function at 0x40a43a
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 1
mov edi, ecx
mov dword [ebp - 0x1c], edx
push 0x428
push 0x403558
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x18], edi
call fcn.0040facc
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov esi, ecx
mov dword [ebp - 4], esi
mov ebx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x2c], 0x4040b8
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
cmp eax, 0xb
je 0x40a4a7
cmp eax, 1
je 0x40a4a7
cmp eax, 5
je 0x40a4a7
mov eax, 0x433
mov dword [ebp - 0x50], 0x80070057
mov word [ebp - 0x4a], ax
jmp 0x40a7e2
mov eax, 0x433
mov dword [ebp - 0x50], ecx
mov word [ebp - 0x4c], ax
lea eax, [edi + 0x54]
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x4c]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40a5f6
mov esi, eax
push 0x58
mov edi, 0x441
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x40a628
mov word [ebp - 0x4c], di
xor edx, edx
mov dword [ebp - 0x50], edx
mov edi, ebx
push 0x16
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
mov dword [ebx + 0x54], edx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx], edx
mov dword [ebx + 0xc], edx
mov edx, dword [esi + 4]
call fcn.00411870
lea ecx, [ebp - 0x2c]
call fcn.00411ed5
mov dword [ebp - 0x50], eax
test eax, eax
mov eax, 0x44b
js 0x40a622
lea edx, [ebx + 4]
mov word [ebp - 0x4c], ax
lea ecx, [ebp - 0x2c]
call fcn.00412079
mov edx, dword [esi]
call fcn.00411870
lea ecx, [ebp - 0x2c]
call fcn.00411ed5
mov dword [ebp - 0x50], eax
test eax, eax
mov eax, 0x44d
js 0x40a622
mov edx, ebx
mov word [ebp - 0x4c], ax
lea ecx, [ebp - 0x2c]
call fcn.00412079
mov edx, dword [esi + 0xc]
call fcn.00411870
lea ecx, [ebp - 0x2c]
call fcn.00411ed5
mov dword [ebp - 0x50], eax
test eax, eax
mov eax, 0x44f
js 0x40a622
lea edx, [ebx + 0xc]
mov word [ebp - 0x4c], ax
lea ecx, [ebp - 0x2c]
call fcn.00412079
mov edx, dword [esi + 8]
test edx, edx
je 0x40a5c8
call fcn.00411870
lea ecx, [ebp - 0x2c]
call fcn.00411ed5
mov dword [ebp - 0x50], eax
test eax, eax
mov eax, 0x453
js 0x40a622
lea edx, [ebx + 8]
mov word [ebp - 0x4c], ax
lea ecx, [ebp - 0x2c]
call fcn.00412079
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40a5d2
mov dword [eax + 0x54], ebx
cmp dword [ebp - 8], 0
jne 0x40a5db
mov dword [ebp - 8], ebx
mov esi, dword [esi + 0x54]
mov dword [ebp - 0xc], ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x40a4d0
mov edi, dword [ebp - 0x18]
mov esi, ebx
and dword [ebp - 0xc], 0
mov eax, dword [edi + 0x98]
test eax, eax
je 0x40a63b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40a63b
and dword [ebp - 0x50], 0
mov eax, 0x470
jmp 0x40a73d
mov word [ebp - 0x4a], ax
jmp 0x40a633
mov dword [ebp - 0x50], 0x8007000e
mov word [ebp - 0x4a], di
mov esi, dword [ebp - 4]
jmp 0x40a741
mov eax, dword [edi + 0x94]
test eax, eax
je 0x40a663
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40a663
and dword [ebp - 0x50], 0
mov eax, 0x477
jmp 0x40a73d
and dword [edi + 0x98], 0
and dword [edi + 0x94], 0
push 0xc
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40a695
mov dword [ebp - 0x50], 0x8007000e
mov eax, 0x480
mov word [ebp - 0x4a], ax
jmp 0x40a741
and dword [ebp - 0x50], 0
mov ecx, 0x480
mov word [ebp - 0x4c], cx
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x10]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x40a6c3
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi]
add eax, 8
push eax
push 0x403e04
push esi
call dword [ecx]
mov dword [ebp - 0x50], eax
test eax, eax
mov eax, 0x484
js 0x40a68c
xor ecx, ecx
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 8]
push ecx
push ecx
push dword [ebp - 0x10]
mov dword [edi + 0xa0], ecx
push 0x40b237
push ecx
push ecx
mov dword [edi + 0xa8], ecx
mov dword [edi + 0xa4], 1
mov dword [edi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x98], eax
test eax, eax
jne 0x40a730
call fcn.00410d32
mov dword [ebp - 0x50], eax
mov eax, 0x48d
jmp 0x40a68c
and dword [ebp - 0x50], 0
mov eax, 0x48d
and dword [ebp - 8], 0
mov word [ebp - 0x4c], ax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemFree]
je 0x40a77c
mov edi, dword [ebp - 0x14]
push dword [edi + 4]
call ebx
push dword [edi]
and dword [edi + 4], 0
call ebx
push dword [edi + 0xc]
and dword [edi], 0
call ebx
push dword [edi + 8]
and dword [edi + 0xc], 0
call ebx
and dword [edi + 8], 0
push edi
call ebx
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x40a7a8
push dword [edi + 4]
call ebx
push dword [edi]
and dword [edi + 4], 0
call ebx
push dword [edi + 0xc]
and dword [edi], 0
call ebx
push dword [edi + 8]
and dword [edi + 0xc], 0
call ebx
and dword [edi + 8], 0
push edi
call ebx
cmp dword [ebp - 8], 0
je 0x40a7e2
mov esi, dword [ebp - 8]
mov edi, esi
mov esi, dword [esi + 0x54]
push dword [edi + 4]
call ebx
push dword [edi]
and dword [edi + 4], 0
call ebx
push dword [edi + 0xc]
and dword [edi], 0
call ebx
push dword [edi + 8]
and dword [edi + 0xc], 0
call ebx
and dword [edi + 8], 0
push edi
call ebx
test esi, esi
jne 0x40a7b1
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
call fcn.00411683
test esi, esi
je 0x40a7f7
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
lea ecx, [ebp - 0x50]
call fcn.0040fbc2
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4