Function at 0x40c93c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x40c944
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x40d281
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 0x40d263
mov eax, dword [0x411254]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
call fcn.00402b9c
mov esi, eax
test esi, esi
jle 0x40c9d4
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 0x40c9e4
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00402618
jmp 0x40d263
mov edx, dword [ebp - 8]
mov eax, 0x40d298
call fcn.00402b9c
dec eax
jne 0x40c9fb
mov eax, ebx
call fcn.0040b758
mov byte [ebx + 0x42], 0
lea edx, [ebp - 0x1c]
mov ax, 0x8f
call fcn.00404d00
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00402b9c
test eax, eax
jne 0x40ccda
mov edx, dword [ebp - 8]
mov eax, 0x40d2a8
call fcn.00402b9c
test eax, eax
jg 0x40ca40
mov edx, dword [ebp - 8]
mov eax, 0x40d2b8
call fcn.00402b9c
test eax, eax
jle 0x40ca7c
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0040a7d4
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x34]
call fcn.00402618
lea edx, [ebp - 0x24]
mov ax, 0xb0
call fcn.00404d00
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.00409a40
lea edx, [ebp - 0x28]
mov ax, 0xb8
call fcn.00404d00
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
call fcn.00402b9c
test eax, eax
jle 0x40cadb
mov edx, dword [ebp - 8]
mov eax, 0x40d2c8
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.00404d00
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.00409a40
push 0x40d2d4
push dword [ebx + 0x34]
push 0x40d2e4
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 0x40cb4e
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, 0x40d2c8
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, 0x40d2f0
call fcn.00402b9c
test eax, eax
jg 0x40cb74
mov edx, dword [ebp - 8]
mov eax, 0x40d300
call fcn.00402b9c
test eax, eax
jle 0x40cc73
lea eax, [ebp - 4]
mov edx, 0x40d310
call fcn.0040265c
lea edx, [ebp - 0x34]
mov ax, 0xaf
call fcn.00404d00
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 0x40cbcb
push eax
mov eax, dword [0x4112b8]
mov eax, dword [eax]
call eax
mov ecx, dword [ebx + 0x454]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00409a40
lea edx, [ebp - 0x3c]
mov ax, 0xae
call fcn.00404d00
push dword [ebp - 0x3c]
push dword [ebx + 0x18]
push 0x40d2e4
lea edx, [ebp - 0x40]
mov ax, 3
call fcn.00404d18
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.00409a40
lea edx, [ebp - 0x44]
mov ax, 3
call fcn.00404d18
cmp dword [ebp - 0x44], 0
je 0x40cc73
lea edx, [ebp - 0x4c]
mov ax, 0x8e
call fcn.00404d00
push dword [ebp - 0x4c]
push dword [ebx + 0x18]
push 0x40d328
lea edx, [ebp - 0x50]
mov ax, 3
call fcn.00404d18
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.00409a40
mov edx, dword [ebp - 8]
mov eax, 0x40d338
call fcn.00402b9c
test eax, eax
jle 0x40ccda
lea eax, [ebp - 4]
mov edx, 0x40d348
call fcn.0040265c
lea edx, [ebp - 0x54]
mov ax, 0xad
call fcn.00404d00
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.00409a40
mov byte [ebx + 0x41], 1
lea edx, [ebp - 0x58]
mov ax, 0xf6
call fcn.00404d00
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 8]
call fcn.00402b9c
mov esi, eax
test esi, esi
jle 0x40cd74
lea edx, [ebp - 0x60]
mov ax, 0x30
call fcn.00404d00
push dword [ebp - 0x60]
lea eax, [ebp - 0x64]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x40d360
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.00404d00
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.00409a40
lea edx, [ebp - 4]
mov ax, 4
call fcn.00404d18
lea edx, [ebp - 0x70]
mov ax, 0xa8
call fcn.00404d00
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 8]
call fcn.00402b9c
test eax, eax
jle 0x40ce04
lea edx, [ebp - 0x78]
mov ax, 0xaa
call fcn.00404d00
push dword [ebp - 0x78]
lea eax, [ebp - 0x7c]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x40d360
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.00404d00
push dword [ebp - 0x80]
push dword [ebp - 4]
push 0x40d36c
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.00409a40
lea edx, [ebp - 0x84]
mov ax, 0xf7
call fcn.00404d00
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 8]
call fcn.00402b9c
mov edi, eax
test edi, edi
jle 0x40cef5
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, 0x40d36c
call fcn.00402b9c
mov edx, eax
dec edx
lea eax, [ebp - 4]
call fcn.00402be4
mov eax, dword [0x411244]
mov eax, dword [eax]
call fcn.00408d54
mov word [0x412e70], ax
movzx eax, word [0x412e70]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [0x411244]
mov edx, dword [edx]
lea eax, [edx + eax - 0x14]
mov edx, dword [ebp - 4]
call fcn.00402618
movzx eax, word [0x412e70]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [0x411244]
mov edx, dword [edx]
mov byte [edx + eax - 0x29], 0xe
movzx eax, word [0x412e70]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [0x411244]
mov edx, dword [edx]
mov dword [edx + eax - 0x20], ebx
mov eax, dword [0x4112a4]
push eax
push 0
push 0
push 0x40d4b4
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
movzx edx, word [0x412e70]
lea edx, [edx + edx*4]
lea edx, [edx + edx*8]
mov ecx, dword [0x411244]
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.00404d00
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
mov edx, 0x40d360
call fcn.004028b0
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 8]
call fcn.00402b9c
test eax, eax
jle 0x40cf3f
lea eax, [ebx + 0x30]
call fcn.004025c4
push 0x40d360
lea edx, [ebp - 0x94]
mov ax, 0x90
call fcn.00404d00
push dword [ebp - 0x94]
lea edx, [ebp - 0x98]
mov ax, 1
call fcn.00404d18
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 0x40cfe5
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.0040265c
mov edx, dword [ebp - 8]
mov eax, 0x40d360
call fcn.00402b9c
mov ecx, eax
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.00402af8
mov edx, dword [ebp - 0x14]
mov eax, 0x40d2e4
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 0x40cffe
cmp byte [ebx + 0x42], 0
je 0x40d23d
lea edx, [ebp - 0x9c]
mov ax, 0xa7
call fcn.00404d00
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 8]
call fcn.00402b9c
mov esi, eax
test esi, esi
jle 0x40d0fb
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, 0x40d36c
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 [0x411244]
mov eax, dword [eax]
call fcn.00408d54
mov word [0x412e70], ax
movzx eax, word [0x412e70]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [0x411244]
mov edx, dword [edx]
mov ecx, dword [ebx + 0x454]
mov dword [edx + eax - 0x1c], ecx
movzx eax, word [0x412e70]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [0x411244]
mov edx, dword [edx]
mov dword [edx + eax - 0x20], ebx
movzx eax, word [0x412e70]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
mov edx, dword [0x411244]
mov edx, dword [edx]
mov byte [edx + eax - 0x29], 0xb
mov eax, dword [0x4112a4]
push eax
push 0
push 0
push 0x40a06c
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
movzx edx, word [0x412e70]
lea edx, [edx + edx*4]
lea edx, [edx + edx*8]
mov ecx, dword [0x411244]
mov ecx, dword [ecx]
mov dword [ecx + edx - 0x28], eax
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x40d360
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, 0x40d378
call fcn.00402b9c
mov esi, eax
test esi, esi
jle 0x40d152
lea eax, [ebx + 0x28]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x40d384
call fcn.00402b9c
mov ecx, eax
sub ecx, esi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00402ab8
jmp 0x40d15d
lea eax, [ebx + 0x28]
mov edx, dword [ebp - 0xc]
call fcn.00402618
test edi, edi
jle 0x40d16c
lea eax, [ebx + 0x28]
mov edx, dword [ebx + 0x18]
call fcn.00402618
lea edx, [ebp - 0xa0]
mov ax, 0xa7
call fcn.00404d00
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebp - 8]
call fcn.00402b9c
test eax, eax
jle 0x40d198
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, 0x40d360
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.00404d00
mov eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 8]
call fcn.00402b9c
test eax, eax
jle 0x40d229
mov edx, dword [ebp - 8]
mov eax, 0x40d2c8
call fcn.00402b9c
mov ecx, eax
lea eax, [ebp - 8]
mov edx, 1
call fcn.00402af8
mov eax, dword [0x411254]
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.0040b9b0
mov eax, dword [0x411254]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
call fcn.00402b9c
test eax, eax
jne 0x40c98d
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 0x40d288
lea eax, [ebp - 0xa4]
mov edx, 0x29
call fcn.004025e8
ret