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 [0x45344c]
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 [0x45344c]
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 [0x45344c]
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 [0x45344c]
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.00428080
mov edx, 4
add esp, 4
mov word [esi + 0x20], dx
mov ecx, dword [0x45344c]
call fcn.00401310
cmp word [esi + 0x20], 2
je 0x40a458
mov ecx, dword [0x45344c]
mov eax, dword [ecx + 0xc58]
mov ecx, dword [ecx + 0xc5c]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push 0
push 0x45187c
push ecx
push 0
push 0
push eax
call edx
mov eax, dword [0x45344c]
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 [0x45344c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [0x453314]
push edx
call fcn.0040b8f0
mov eax, dword [0x45344c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [0x453308]
push edx
call fcn.0040f3f0
mov eax, dword [0x45344c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [0x453324]
push edx
call fcn.00428840
mov eax, dword [0x45344c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [0x453318]
push edx
call fcn.00424040
mov eax, dword [0x45344c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [0x45330c]
push edx
call fcn.00416820
mov eax, dword [0x45344c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [0x45331c]
push edx
call fcn.0041edf0
mov eax, dword [0x45344c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [0x453304]
push edx
call fcn.00417650
mov eax, dword [0x45344c]
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 [0x45344c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [0x453310]
push edx
call fcn.004200e0
mov eax, dword [0x45344c]
mov ecx, dword [eax + 0xcdc]
mov edx, dword [eax + 0xce0]
push ecx
mov ecx, dword [0x453300]
push edx
call fcn.00422430
mov byte [esi + 0x24], 0
mov ecx, dword [0x453304]
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 [0x453314]
call fcn.0040c380
mov ecx, dword [0x453314]
call fcn.00428d80
mov ecx, dword [0x453314]
call fcn.00428d80
mov ecx, dword [0x453318]
call fcn.00424ae0
mov ecx, dword [0x453304]
push ebx
call fcn.00419930
mov ecx, dword [0x453308]
call fcn.004107a0
mov ecx, dword [0x453318]
call fcn.00424b70
mov ecx, dword [0x453324]
call fcn.00428d80
mov ecx, dword [0x453318]
call fcn.00424fa0
mov ecx, dword [0x453304]
call fcn.00418b90
mov ecx, dword [0x453324]
call fcn.00428d90
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 [0x4541fc]
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.00428170
cmp eax, 2
jne 0x40a005
push 0
push ebx
jmp 0x40a020
call fcn.00428170
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.00428150
add esp, 8
mov eax, dword [0x4567e0]
test eax, eax
jle 0x40a053
push 5
push eax
call fcn.004280b0
add esp, 8
test eax, eax
je 0x40a04c
mov dword [0x4567e0], 0
jmp 0x40a053
mov ecx, esi
call fcn.00409a60
push edi
call fcn.00428130
test al, al
jne 0x40a1e0
mov edi, 0x63
cmp dword [esi + 0x14], edi
je 0x40a095
call fcn.00428190
cmp eax, 0x64
jge 0x40a07e
call fcn.00428180
test eax, eax
jle 0x40a095
mov ecx, dword [0x453314]
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 [0x453314]
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 [0x453314]
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.00428140
mov byte [0x456417], 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 [0x453304]
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 [0x453308]
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 [0x454be7], 0
je 0x40a386
mov ecx, dword [esi + 8]
push 5
call fcn.004079a0
mov ecx, dword [0x453318]
call fcn.00424b50
mov ecx, dword [0x453300]
call fcn.00423aa0
cmp byte [0x454be6], 0
je 0x40a3ce
mov ecx, dword [esi + 0x2c]
push 0
push 0x3e8
call fcn.00402440
test eax, eax
je 0x40a3a8
add dword [0x453438], ebx
mov eax, dword [0x453438]
cmp eax, dword [esi + 0x1c]
jl 0x40a3ce
mov dword [0x454bf4], 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 [0x4567bc], 0
jle 0x40a3e2
mov ecx, dword [0x453300]
call fcn.00423530
mov ecx, dword [0x45344c]
call fcn.00401310
mov ecx, dword [0x45344c]
mov eax, dword [ecx + 0xc58]
mov ecx, dword [ecx + 0xc5c]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push 0
push 0x45187c
push ecx
push 0
push 0
push eax
call edx
mov edi, eax
mov eax, dword [0x45344c]
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 [0x453308]
mov eax, ebx
mov word [ecx + 0x32e], ax
mov byte [esi + 0x24], bl
mov ecx, dword [0x45344c]
pop ebx
pop esi
add esp, 4
jmp 0x401250
pop ebx
pop esi
pop ecx
ret