Function at 0x40ce2c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x40ce34
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x40d79d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
lea edx, [ebx + 0x4c]
mov ecx, 0x400
call fcn.00402828
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 0x2c]
call fcn.004028b0
mov eax, dword [ebp - 0x10]
call fcn.00402864
test eax, eax
je 0x40d77f
mov eax, dword [0x41292c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
call fcn.00402b9c
mov esi, eax
test esi, esi
jle 0x40cec4
lea eax, [ebp - 8]
push eax
lea edi, [esi + 1]
mov ecx, edi
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00402ab8
mov ecx, edi
lea eax, [ebp - 0x10]
mov edx, 1
call fcn.00402af8
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00402618
jmp 0x40ced4
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00402618
jmp 0x40d77f
mov edx, dword [ebp - 8]
mov eax, 0x40d7b4
call fcn.00402b9c
dec eax
jne 0x40ceeb
mov eax, ebx
call fcn.0040bc44
mov byte [ebx + 0x42], 0
lea edx, [ebp - 0x1c]
mov ax, 0x8f
call fcn.00404cb0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00402b9c
test eax, eax
jne 0x40d1ca
mov edx, dword [ebp - 8]
mov eax, 0x40d7c4
call fcn.00402b9c
test eax, eax
jg 0x40cf30
mov edx, dword [ebp - 8]
mov eax, 0x40d7d4
call fcn.00402b9c
test eax, eax
jle 0x40cf6c
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0040acc0
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x34]
call fcn.00402618
lea edx, [ebp - 0x24]
mov ax, 0xb0
call fcn.00404cb0
lea eax, [ebp - 0x24]
mov edx, dword [ebx + 0x34]
call fcn.0040286c
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebx + 0x454]
mov eax, ebx
call fcn.00409f2c
lea edx, [ebp - 0x28]
mov ax, 0xb8
call fcn.00404cb0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
call fcn.00402b9c
test eax, eax
jle 0x40cfcb
mov edx, dword [ebp - 8]
mov eax, 0x40d7e4
call fcn.00402b9c
mov ecx, eax
dec ecx
lea eax, [ebp - 8]
mov edx, 1
call fcn.00402af8
lea edx, [ebp - 0x2c]
mov ax, 0xb1
call fcn.00404cb0
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 8]
call fcn.0040286c
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebx + 0x454]
mov eax, ebx
call fcn.00409f2c
push 0x40d7f0
push dword [ebx + 0x34]
push 0x40d800
push dword [ebx + 0x18]
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00402924
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
call fcn.00402b9c
test eax, eax
jle 0x40d03e
mov byte [ebx + 0x42], 1
lea eax, [ebp - 8]
mov ecx, 1
mov edx, 1
call fcn.00402af8
mov edx, dword [ebp - 8]
mov eax, 0x40d7e4
call fcn.00402b9c
mov ecx, eax
lea eax, [ebp - 8]
mov edx, 1
call fcn.00402af8
mov eax, dword [ebp - 8]
call fcn.00402864
mov edx, eax
sub edx, 2
lea eax, [ebp - 8]
call fcn.00402be4
mov edx, dword [ebp - 8]
mov eax, 0x40d80c
call fcn.00402b9c
test eax, eax
jg 0x40d064
mov edx, dword [ebp - 8]
mov eax, 0x40d81c
call fcn.00402b9c
test eax, eax
jle 0x40d163
lea eax, [ebp - 4]
mov edx, 0x40d82c
call fcn.0040265c
lea edx, [ebp - 0x34]
mov ax, 0xaf
call fcn.00404cb0
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 4]
call fcn.00402b9c
mov esi, eax
lea eax, [ebp - 4]
mov ecx, 5
mov edx, esi
call fcn.00402af8
lea edx, [ebp - 4]
mov ecx, esi
mov eax, dword [ebx + 0x34]
call fcn.00402b40
mov byte [ebx + 0x40], 0
mov eax, dword [ebx + 0x3c]
test eax, eax
jle 0x40d0bb
push eax
mov eax, dword [0x412990]
mov eax, dword [eax]
call eax
mov ecx, dword [ebx + 0x454]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00409f2c
lea edx, [ebp - 0x3c]
mov ax, 0xae
call fcn.00404cb0
push dword [ebp - 0x3c]
push dword [ebx + 0x18]
push 0x40d800
lea edx, [ebp - 0x40]
mov ax, 3
call fcn.00404cc8
push dword [ebp - 0x40]
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00402924
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x454]
mov eax, ebx
call fcn.00409f2c
lea edx, [ebp - 0x44]
mov ax, 3
call fcn.00404cc8
cmp dword [ebp - 0x44], 0
je 0x40d163
lea edx, [ebp - 0x4c]
mov ax, 0x8e
call fcn.00404cb0
push dword [ebp - 0x4c]
push dword [ebx + 0x18]
push 0x40d844
lea edx, [ebp - 0x50]
mov ax, 3
call fcn.00404cc8
push dword [ebp - 0x50]
lea eax, [ebp - 0x48]
mov edx, 4
call fcn.00402924
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebx + 0x454]
mov eax, ebx
call fcn.00409f2c
mov edx, dword [ebp - 8]
mov eax, 0x40d854
call fcn.00402b9c
test eax, eax
jle 0x40d1ca
lea eax, [ebp - 4]
mov edx, 0x40d864
call fcn.0040265c
lea edx, [ebp - 0x54]
mov ax, 0xad
call fcn.00404cb0
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 4]
call fcn.00402b9c
mov esi, eax
lea eax, [ebp - 4]
mov ecx, 5
mov edx, esi
call fcn.00402af8
lea edx, [ebp - 4]
mov ecx, esi
mov eax, dword [ebx + 0x18]
call fcn.00402b40
mov ecx, dword [ebx + 0x454]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00409f2c
mov byte [ebx + 0x41], 1
lea edx, [ebp - 0x58]
mov ax, 0xf6
call fcn.00404cb0
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 8]
call fcn.00402b9c
mov esi, eax
test esi, esi
jle 0x40d264
lea edx, [ebp - 0x60]
mov ax, 0x30
call fcn.00404cb0
push dword [ebp - 0x60]
lea eax, [ebp - 0x64]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x40d87c
call fcn.00402b9c
mov ecx, eax
sub ecx, 2
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.00402ab8
push dword [ebp - 0x64]
lea edx, [ebp - 0x68]
mov ax, 0xac
call fcn.00404cb0
push dword [ebp - 0x68]
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 8]
call fcn.00402864
mov ecx, eax
lea edx, [esi + 7]
mov eax, dword [ebp - 8]
call fcn.00402ab8
push dword [ebp - 0x6c]
lea eax, [ebp - 0x5c]
mov edx, 4
call fcn.00402924
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebx + 0x454]
mov eax, ebx
call fcn.00409f2c
lea edx, [ebp - 4]
mov ax, 4
call fcn.00404cc8
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4128b4]
mov edx, 0x6d9
call fcn.00404d2c
movzx eax, ax
call fcn.00401ac8
inc eax
mov edx, dword [0x4128b4]
mov ecx, 0x6d9
call fcn.00404cf8
lea edx, [ebp - 0x70]
mov ax, 0xa8
call fcn.00404cb0
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 8]
call fcn.00402b9c
test eax, eax
jle 0x40d320
lea edx, [ebp - 0x78]
mov ax, 0xaa
call fcn.00404cb0
push dword [ebp - 0x78]
lea eax, [ebp - 0x7c]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x40d87c
call fcn.00402b9c
mov ecx, eax
sub ecx, 2
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.00402ab8
push dword [ebp - 0x7c]
lea edx, [ebp - 0x80]
mov ax, 0xab
call fcn.00404cb0
push dword [ebp - 0x80]
push dword [ebp - 4]
push 0x40d888
lea eax, [ebp - 0x74]
mov edx, 5
call fcn.00402924
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebx + 0x454]
mov eax, ebx
call fcn.00409f2c
lea edx, [ebp - 0x84]
mov ax, 0xf7
call fcn.00404cb0
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 8]
call fcn.00402b9c
mov edi, eax
test edi, edi
jle 0x40d411
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040265c
lea ecx, [edi + 9]
lea eax, [ebp - 4]
mov edx, 1
call fcn.00402af8
mov edx, dword [ebp - 4]
mov eax, 0x40d888
call fcn.00402b9c
mov edx, eax
dec edx
lea eax, [ebp - 4]
call fcn.00402be4
mov eax, dword [0x41291c]
mov eax, dword [eax]
call fcn.00409240
mov word [0x413e7c], ax
movzx eax, word [0x413e7c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [0x41291c]
mov edx, dword [edx]
lea eax, [edx + eax - 0x14]
mov edx, dword [ebp - 4]
call fcn.00402618
movzx eax, word [0x413e7c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [0x41291c]
mov edx, dword [edx]
mov byte [edx + eax - 0x29], 0xe
movzx eax, word [0x413e7c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [0x41291c]
mov edx, dword [edx]
mov dword [edx + eax - 0x20], ebx
mov eax, dword [0x41297c]
push eax
push 0
push 0
push 0x40d9d0
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
movzx edx, word [0x413e7c]
lea edx, [edx + edx*4]
lea edx, [edx + edx*8]
mov ecx, dword [0x41291c]
mov ecx, dword [ecx]
mov dword [ecx + edx - 0x28], eax
lea eax, [ebx + 0x28]
mov edx, dword [ebx + 0x18]
call fcn.00402618
lea edx, [ebp - 0x8c]
mov ax, 0x90
call fcn.00404cb0
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
mov edx, 0x40d87c
call fcn.004028b0
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 8]
call fcn.00402b9c
test eax, eax
jle 0x40d45b
lea eax, [ebx + 0x30]
call fcn.004025c4
push 0x40d87c
lea edx, [ebp - 0x94]
mov ax, 0x90
call fcn.00404cb0
push dword [ebp - 0x94]
lea edx, [ebp - 0x98]
mov ax, 1
call fcn.00404cc8
push dword [ebp - 0x98]
lea eax, [ebp - 0x90]
mov edx, 3
call fcn.00402924
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp - 8]
call fcn.00402b9c
test eax, eax
jle 0x40d501
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.0040265c
mov edx, dword [ebp - 8]
mov eax, 0x40d87c
call fcn.00402b9c
mov ecx, eax
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.00402af8
mov edx, dword [ebp - 0x14]
mov eax, 0x40d800
call fcn.00402b9c
mov edx, eax
dec edx
lea eax, [ebp - 0x14]
call fcn.00402be4
lea eax, [ebx + 8]
mov edx, dword [ebp - 0x14]
call fcn.00402618
lea eax, [ebx + 0x30]
mov edx, dword [ebx + 8]
call fcn.00402618
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x30]
call fcn.00402b9c
test eax, eax
jg 0x40d51a
cmp byte [ebx + 0x42], 0
je 0x40d759
lea edx, [ebp - 0x9c]
mov ax, 0xa7
call fcn.00404cb0
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 8]
call fcn.00402b9c
mov esi, eax
test esi, esi
jle 0x40d617
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040265c
lea ecx, [esi + 9]
lea eax, [ebp - 4]
mov edx, 1
call fcn.00402af8
mov edx, dword [ebp - 4]
mov eax, 0x40d888
call fcn.00402b9c
mov edx, eax
dec edx
lea eax, [ebp - 4]
call fcn.00402be4
lea eax, [ebx + 0x450]
mov edx, dword [ebp - 4]
call fcn.00402618
mov eax, dword [0x41291c]
mov eax, dword [eax]
call fcn.00409240
mov word [0x413e7c], ax
movzx eax, word [0x413e7c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [0x41291c]
mov edx, dword [edx]
mov ecx, dword [ebx + 0x454]
mov dword [edx + eax - 0x1c], ecx
movzx eax, word [0x413e7c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [0x41291c]
mov edx, dword [edx]
mov dword [edx + eax - 0x20], ebx
movzx eax, word [0x413e7c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [0x41291c]
mov edx, dword [edx]
mov byte [edx + eax - 0x29], 0xb
mov eax, dword [0x41297c]
push eax
push 0
push 0
push 0x40a558
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
movzx edx, word [0x413e7c]
lea edx, [edx + edx*4]
lea edx, [edx + edx*8]
mov ecx, dword [0x41291c]
mov ecx, dword [ecx]
mov dword [ecx + edx - 0x28], eax
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x40d87c
call fcn.00402b9c
mov ecx, eax
sub ecx, 2
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.00402ab8
mov edx, dword [ebp - 8]
mov eax, 0x40d894
call fcn.00402b9c
mov esi, eax
test esi, esi
jle 0x40d66e
lea eax, [ebx + 0x28]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x40d8a0
call fcn.00402b9c
mov ecx, eax
sub ecx, esi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00402ab8
jmp 0x40d679
lea eax, [ebx + 0x28]
mov edx, dword [ebp - 0xc]
call fcn.00402618
test edi, edi
jle 0x40d688
lea eax, [ebx + 0x28]
mov edx, dword [ebx + 0x18]
call fcn.00402618
lea edx, [ebp - 0xa0]
mov ax, 0xa7
call fcn.00404cb0
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebp - 8]
call fcn.00402b9c
test eax, eax
jle 0x40d6b4
lea eax, [ebx + 0x28]
mov edx, dword [ebx + 0x18]
call fcn.00402618
lea eax, [ebx + 0x24]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x40d87c
call fcn.00402b9c
mov ecx, eax
sub ecx, 2
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.00402ab8
mov eax, dword [ebx + 0x30]
call fcn.00402864
mov ecx, eax
lea eax, [ebp - 8]
mov edx, 1
call fcn.00402af8
lea edx, [ebp - 0xa4]
mov ax, 0x8f
call fcn.00404cb0
mov eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 8]
call fcn.00402b9c
test eax, eax
jle 0x40d745
mov edx, dword [ebp - 8]
mov eax, 0x40d7e4
call fcn.00402b9c
mov ecx, eax
lea eax, [ebp - 8]
mov edx, 1
call fcn.00402af8
mov eax, dword [0x41292c]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
call fcn.00402b9c
mov edx, eax
dec edx
lea eax, [ebp - 8]
call fcn.00402be4
mov eax, dword [ebx + 0x454]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0040be9c
mov eax, dword [0x41292c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
call fcn.00402b9c
test eax, eax
jne 0x40ce7d
lea eax, [ebx + 0x4c]
xor ecx, ecx
mov edx, 0x400
call fcn.00401aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d7a4
lea eax, [ebp - 0xa4]
mov edx, 0x29
call fcn.004025e8
ret