Function at 0x40cd7f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x4b7f10]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], esi
test esi, esi
jne 0x40cdaf
xor eax, eax
inc eax
jmp 0x40d1c5
mov eax, dword [esi + 0x1a4]
imul eax, dword [ebp + 0xc]
add dword [edi + 0x80], eax
lea ebx, [edi + 0x44]
mov eax, dword [ebx + 0xc]
push ebx
push eax
lea ecx, [esp + 0x20]
call fcn.00403dfb
jmp 0x40ce22
call fcn.0040e19a
cmp dword [esi + 0x18], 8
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
jb 0x40cde8
mov ecx, dword [esi + 4]
jmp 0x40cdeb
lea ecx, [esi + 4]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x80]
xor edx, edx
div dword [edi + 0x84]
push 0
mov dword [esp + 0x10], ecx
push eax
mov eax, dword [esp + 0x28]
push 0x4a7ca0
push 1
push ecx
mov ecx, dword [esp + 0x40]
call dword [eax + 4]
lea ecx, [esp + 0x18]
call fcn.0040e1c6
mov eax, dword [ebx + 0x10]
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.00403dfb
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403dbd
lea ecx, [esp + 0x18]
test al, al
je 0x40cdd2
cmp dword [ebp + 8], 0
push ebx
je 0x40cef3
push dword [ebx + 0xc]
call fcn.00403dfb
push ebx
push dword [ebx + 0x10]
jmp 0x40ceb7
lea ecx, [esp + 0x18]
call fcn.0040e19a
cmp dword [esi + 0x18], 8
mov eax, dword [eax]
mov dword [esp + 0x20], eax
jb 0x40ce79
mov ecx, dword [esi + 4]
jmp 0x40ce7c
lea ecx, [esi + 4]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x80]
xor edx, edx
div dword [edi + 0x84]
push 0
mov dword [esp + 0x10], ecx
push eax
mov eax, dword [esp + 0x30]
push 0x4a7ca0
push 2
push ecx
mov ecx, dword [esp + 0x34]
call dword [eax + 4]
lea ecx, [esp + 0x18]
call fcn.0040e1c6
push ebx
push dword [ebx + 0x10]
lea ecx, [esp + 0x18]
call fcn.00403dfb
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403dbd
test al, al
je 0x40ce5f
lea ebx, [edi - 4]
mov eax, esi
mov dword [esi + 0x1a8], 4
call fcn.0040c296
test eax, eax
jne 0x40d1bb
jmp 0x40cda7
mov eax, dword [ebx + 0xc]
push eax
call fcn.00403dfb
jmp 0x40cf52
lea ecx, [esp + 0x18]
call fcn.0040e19a
cmp dword [esi + 0x18], 8
mov eax, dword [eax]
mov dword [esp + 0x20], eax
jb 0x40cf18
mov ecx, dword [esi + 4]
jmp 0x40cf1b
lea ecx, [esi + 4]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x80]
xor edx, edx
div dword [edi + 0x84]
push 0
mov dword [esp + 0x10], ecx
push eax
mov eax, dword [esp + 0x34]
push 0x4a7ca0
push 3
push ecx
mov ecx, dword [esp + 0x34]
call dword [eax + 4]
lea ecx, [esp + 0x18]
call fcn.0040e1c6
mov eax, dword [ebx + 0x10]
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.00403dfb
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403dbd
test al, al
je 0x40cefe
push 0x4a8678
lea ecx, [esi + 0x188]
call fcn.0040a395
test eax, eax
jne 0x40cf95
mov dword [esi + 0x1a8], 6
jmp 0x40d1bb
push 5
pop ebx
push 0
lea ecx, [esp + 0x40]
mov dword [esi + 0x1a8], ebx
mov dword [esp + 0x58], 7
call fcn.00401cdf
add esi, 0x16c
push esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x24], esi
call fcn.00401918
lea eax, [esp + 0x3c]
push eax
lea esi, [esp + 0x5c]
call fcn.0040c6d3
test eax, eax
je 0x40d036
add edi, 0x5c
mov dword [esp + 0xc], edi
jmp 0x40cfe4
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x30]
push eax
push edi
call fcn.004164a3
mov eax, dword [edi + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [edi]
lea edi, [esp + 0x10]
lea esi, [esp + 0x2c]
mov dword [esp + 0x10], eax
call fcn.00416974
test al, al
jne 0x40d032
call fcn.0040e1f5
mov eax, dword [eax + 0x1c]
mov dword [eax + 0x1a8], ebx
lea eax, [esp + 0x3c]
push eax
lea esi, [esp + 0x5c]
call fcn.0040c6d3
test eax, eax
jne 0x40cfe0
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0xd4]
xor ebx, ebx
cmp eax, ebx
je 0x40d082
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40d082
push dword [esp + 0x34]
lea ecx, [edi + 0x108]
call fcn.0040d9f9
lea ecx, [edi - 4]
call fcn.0040bc43
push ebx
push 1
lea ecx, [esp + 0x60]
call fcn.00401a58
push ebx
push 1
lea ecx, [esp + 0x44]
call fcn.00401a58
jmp 0x40d1c3
lea esi, [edi + 0xd8]
mov ecx, esi
mov dword [esp + 0x10], esi
call fcn.0040da54
lea ecx, [edi + 0xf0]
mov dword [esp + 0x2c], ecx
call fcn.0040da54
mov eax, dword [esp + 0x34]
add eax, 0x1c
push eax
mov ecx, esi
call fcn.0040d9f9
push dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
call fcn.0040d9f9
push 0xffffffffffffffff
push ebx
push dword [esp + 0x28]
lea ecx, [esp + 0x64]
call fcn.004019a1
lea eax, [esp + 0x3c]
push eax
lea esi, [esp + 0x5c]
call fcn.0040c6d3
test eax, eax
je 0x40d150
add edi, 0x5c
mov dword [esp + 0xc], edi
jmp 0x40d0ed
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x38]
push eax
push edi
call fcn.004164a3
mov eax, dword [edi + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [edi]
lea edi, [esp + 0x20]
lea esi, [esp + 0x34]
mov dword [esp + 0x20], eax
call fcn.00416974
test al, al
jne 0x40d14c
call fcn.0040e1f5
mov esi, dword [eax + 0x1c]
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x1c]
push eax
call fcn.0040d9f9
mov ecx, dword [esp + 0x2c]
push esi
call fcn.0040d9f9
lea eax, [esp + 0x3c]
push eax
lea esi, [esp + 0x5c]
call fcn.0040c6d3
test eax, eax
jne 0x40d0e9
mov edi, dword [esp + 0x28]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40d184
push ebx
push ecx
mov eax, esp
push ebx
push ebx
push ebx
mov dword [eax], ebx
push ecx
mov eax, esp
mov dword [eax], ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
lea ecx, [edi + 4]
call fcn.0040dabe
push ebx
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 0x18]
push eax
push ebx
lea eax, [edi - 4]
push eax
push 0x40d245
push ebx
push ebx
call fcn.0046d985
add esp, 0x18
push ebx
push 1
lea ecx, [esp + 0x60]
mov dword [edi + 0xd4], eax
call fcn.00401a58
push ebx
push 1
lea ecx, [esp + 0x44]
call fcn.00401a58
lea ecx, [edi - 4]
call fcn.0040bc43
xor eax, eax
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046cc2a
mov esp, ebp
pop ebp
ret 0xc