Function at 0x409ca0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc54]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x6c]
push eax
call edx
mov dword [esi + 0xcec], 0
test eax, eax
jne 0x401284
mov esi, dword [esi + 0xc5c]
mov eax, dword [esi]
mov ecx, dword [eax + 0x6c]
push esi
call ecx
neg eax
sbb eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
push ecx
push esi
mov esi, ecx
mov ecx, dword [0x45244c]
call fcn.00401290
test eax, eax
je 0x40a458
cmp byte [esi + 0x24], 0
je 0x409f12
movzx eax, word [esi + 0x20]
cmp ax, 4
jge 0x409de5
cmp ax, 1
jne 0x409ce3
mov eax, 2
mov word [esi + 0x20], ax
jmp 0x409d8f
cmp ax, 2
jne 0x409cf4
xor ecx, ecx
mov word [esi + 0x20], cx
jmp 0x409d8f
test ax, ax
jne 0x409d6f
mov eax, dword [0x45244c]
mov edx, dword [eax + 0xcdc]
mov eax, dword [eax + 0xce0]
mov ecx, dword [esi + 0x2c]
push edx
push eax
call fcn.004058c0
mov eax, dword [0x45244c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [esi + 0x30]
push edx
call fcn.004058c0
mov eax, dword [0x45244c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [esi + 0xc]
push edx
call fcn.004058c0
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x409be0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 3
mov dword [esi + 0x28], eax
mov word [esi + 0x20], cx
jmp 0x409d8f
cmp ax, 3
jne 0x409d8f
mov ecx, esi
call fcn.004094a0
push 2
call fcn.00427ff0
mov edx, 4
add esp, 4
mov word [esi + 0x20], dx
mov ecx, dword [0x45244c]
call fcn.00401310
cmp word [esi + 0x20], 2
je 0x40a458
mov ecx, dword [0x45244c]
mov eax, dword [ecx + 0xc58]
mov ecx, dword [ecx + 0xc5c]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push 0
push 0x45087c
push ecx
push 0
push 0
push eax
call edx
mov eax, dword [0x45244c]
mov eax, dword [eax + 0xc54]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 0
push 0
push eax
call edx
pop esi
pop ecx
ret
mov eax, dword [0x45244c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [0x452314]
push edx
call fcn.0040b8f0
mov eax, dword [0x45244c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [0x452308]
push edx
call fcn.0040f410
mov eax, dword [0x45244c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [0x452324]
push edx
call fcn.004287b0
mov eax, dword [0x45244c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [0x452318]
push edx
call fcn.00423f70
mov eax, dword [0x45244c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [0x45230c]
push edx
call fcn.004167b0
mov eax, dword [0x45244c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [0x45231c]
push edx
call fcn.0041ed20
mov eax, dword [0x45244c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [0x452304]
push edx
call fcn.004175e0
mov eax, dword [0x45244c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [esi + 8]
push edx
call fcn.004058c0
mov eax, dword [0x45244c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [0x452310]
push edx
call fcn.00420010
mov eax, dword [0x45244c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [0x452300]
push edx
call fcn.00422360
mov byte [esi + 0x24], 0
mov ecx, dword [0x452304]
cmp byte [ecx + 0x3a0], 0
jne 0x409f6e
cmp byte [ecx + 0x36c], 0
jne 0x409f6e
cmp byte [ecx + 0x4cc], 0
jne 0x409f6e
cmp byte [ecx + 0x4f1], 0
jne 0x409f6e
mov ecx, dword [0x452314]
call fcn.0040c380
mov ecx, dword [0x452314]
call fcn.00428cf0
mov ecx, dword [0x452314]
call fcn.00428cf0
mov ecx, dword [0x452318]
call fcn.00424a10
mov ecx, dword [0x452304]
push ebx
call fcn.004198c0
mov ecx, dword [0x452308]
call fcn.004107c0
mov ecx, dword [0x452318]
call fcn.00424aa0
mov ecx, dword [0x452324]
call fcn.00428cf0
mov ecx, dword [0x452318]
call fcn.00424ed0
mov ecx, dword [0x452304]
call fcn.00418b20
mov ecx, dword [0x452324]
call fcn.00428d00
cmp word [esi + 0x20], 4
mov ebx, 1
jne 0x409ff6
push 0
mov eax, 5
push 0
mov word [esi + 0x20], ax
mov ecx, dword [0x4531fc]
push 0x404
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esi + 0x2c]
push 0
push 0
push 0
push ebx
push 0
push 0
push 0
call fcn.00408eb0
call fcn.004280e0
cmp eax, 2
jne 0x40a005
push 0
push ebx
jmp 0x40a020
call fcn.004280e0
cmp eax, ebx
jne 0x40a028
add word [esi + 0x22], bx
movzx eax, word [esi + 0x22]
cmp ax, 0x25
jl 0x40a028
push 0
push 0
call fcn.004280c0
add esp, 8
mov eax, dword [0x4557e0]
test eax, eax
jle 0x40a053
push 5
push eax
call fcn.00428020
add esp, 8
test eax, eax
je 0x40a04c
mov dword [0x4557e0], 0
jmp 0x40a053
mov ecx, esi
call fcn.00409a60
push edi
call fcn.004280a0
test al, al
jne 0x40a1e0
mov edi, 0x63
cmp dword [esi + 0x14], edi
je 0x40a095
call fcn.00428100
cmp eax, 0x64
jge 0x40a07e
call fcn.004280f0
test eax, eax
jle 0x40a095
mov ecx, dword [0x452314]
push 0xffffffffffffffff
push ebx
call fcn.0040be60
xor edx, edx
mov dword [esi + 0x14], edi
mov word [esi + 0x18], dx
mov ecx, dword [esi + 8]
push 3
push 0x708
call fcn.00402440
test eax, eax
je 0x40a0b4
mov ecx, dword [0x452314]
push ebx
call fcn.0040bf10
mov ecx, dword [esi + 0x2c]
cmp dword [esi + 0x14], edi
jne 0x40a110
movzx eax, word [esi + 0x18]
push eax
push 0
push ebx
push 0
push 0
push 0
call fcn.00408870
mov ecx, dword [0x452314]
cmp byte [ecx + 0x489], 0
jne case.0x40a24f.2
add word [esi + 0x18], bx
movzx eax, word [esi + 0x18]
cmp ax, 0x26
jl case.0x40a24f.2
push ebx
call fcn.004280b0
mov byte [0x455417], 0
add esp, 4
mov dword [esi + 0x14], 0
jmp case.0x40a24f.2
push 0
push 0
push 0
push ebx
push ebx
push 0xdc
push 0xaf
call fcn.00408eb0
mov ecx, dword [esi + 8]
cmp word [ecx + 0x402], 0
jne 0x40a1bb
push 0
push 0
push 0
push ebx
push 0
push 0x3ca
push 0
call fcn.00405b10
mov ecx, dword [esi + 8]
mov edx, 0x300
sub edx, eax
mov eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.00408eb0
mov ecx, dword [esi + 8]
push 0
push 0
push 0
push ebx
push 4
push 0x10e
push 4
call fcn.00405b10
mov ecx, 0x300
sub ecx, eax
mov eax, ecx
mov ecx, dword [esi + 8]
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.00408eb0
mov ecx, dword [esi + 8]
push 4
push 0x7d0
call fcn.00402440
test eax, eax
je case.0x40a24f.2
mov edx, dword [esi + 8]
mov eax, ebx
mov word [edx + 0x402], ax
jmp case.0x40a24f.2
push 4
push 0x1f4
call fcn.00402440
test eax, eax
je case.0x40a24f.2
mov ecx, dword [esi + 8]
xor edx, edx
mov word [ecx + 0x402], dx
jmp case.0x40a24f.2
mov ecx, dword [0x452304]
cmp byte [ecx + 0x3a0], 0
jne case.0x40a24f.2
cmp byte [ecx + 0x36c], 0
jne case.0x40a24f.2
cmp byte [ecx + 0x4cc], 0
jne case.0x40a24f.2
cmp byte [ecx + 0x4f1], 0
jne case.0x40a24f.2
call fcn.004090d0
test al, al
jne case.0x40a24f.2
mov eax, dword [0x452308]
cmp byte [eax + 0x65c], 0
jne case.0x40a24f.2
mov ecx, dword [eax + 0x994]
cmp ecx, 0x12
ja case.0x40a24f.2
movzx ecx, byte [ecx + 0x40a46c]
jmp dword [ecx*4 + 0x40a45c]
mov ecx, dword [esi + 8]
push 0
push 0
push 0
push ebx
push ebx
push 0x3a2
push ebx
call fcn.00405b10
mov ecx, dword [esi + 8]
mov edx, 0x300
sub edx, eax
mov eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.00408eb0
mov ecx, dword [esi + 8]
push ebx
push 0x12c
call fcn.00402440
test eax, eax
je case.0x40a24f.2
mov eax, dword [esi + 8]
add word [eax + 0x404], bx
mov eax, dword [esi + 8]
cmp word [eax + 0x404], 3
jle case.0x40a24f.2
mov ecx, ebx
mov word [eax + 0x404], cx
jmp case.0x40a24f.2
mov ecx, dword [esi + 8]
push 0
push 0
push 0
push ebx
push 3
push 0x398
push 3
call fcn.00405b10
mov ecx, dword [esi + 8]
mov edx, 0x300
sub edx, eax
mov eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.00408eb0
mov ecx, dword [esi + 8]
push ebx
push 0x12c
call fcn.00402440
test eax, eax
je case.0x40a24f.2
mov eax, dword [esi + 8]
add word [eax + 0x404], bx
mov eax, dword [esi + 8]
cmp word [eax + 0x404], 3
jle case.0x40a24f.2
mov ecx, ebx
mov word [eax + 0x404], cx
jmp case.0x40a24f.2
cmp byte [eax + 0x3a2], 0
jne case.0x40a24f.2
mov ecx, dword [esi + 8]
push 0
push 0
push 0
push ebx
push 2
push 0x3ac
push 2
call fcn.00405b10
mov ecx, dword [esi + 8]
mov edx, 0x300
sub edx, eax
mov eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.00408eb0
cmp byte [0x453be7], 0
je 0x40a386
mov ecx, dword [esi + 8]
push 5
call fcn.004079a0
mov ecx, dword [0x452318]
call fcn.00424a80
mov ecx, dword [0x452300]
call fcn.004239d0
cmp byte [0x453be6], 0
je 0x40a3ce
mov ecx, dword [esi + 0x2c]
push 0
push 0x3e8
call fcn.00402440
test eax, eax
je 0x40a3a8
add dword [0x452438], ebx
mov eax, dword [0x452438]
cmp eax, dword [esi + 0x1c]
jl 0x40a3ce
mov dword [0x453bf4], 0xe
mov ecx, dword [esi + 0x1c]
add ecx, 0xa
cmp eax, ecx
jl 0x40a3ce
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [0x4557bc], 0
jle 0x40a3e2
mov ecx, dword [0x452300]
call fcn.00423460
mov ecx, dword [0x45244c]
call fcn.00401310
mov ecx, dword [0x45244c]
mov eax, dword [ecx + 0xc58]
mov ecx, dword [ecx + 0xc5c]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push 0
push 0x45087c
push ecx
push 0
push 0
push eax
call edx
mov edi, eax
mov eax, dword [0x45244c]
mov eax, dword [eax + 0xc54]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 0
push 0
push eax
call edx
cmp edi, 0x887601c2
pop edi
jne 0x40a457
mov ecx, dword [0x452308]
mov eax, ebx
mov word [ecx + 0x32e], ax
mov byte [esi + 0x24], bl
mov ecx, dword [0x45244c]
pop ebx
pop esi
add esp, 4
jmp 0x401250
pop ebx
pop esi
pop ecx
ret