Function at 0x40a2c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov edi, dword [eax]
xor esi, esi
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
mov eax, dword [0x62b058]
mov dword [esp + 0x1c], edi
test eax, eax
je 0x40a310
nop dword [eax]
cmp esi, 0xc8
jge 0x40a308
push 0x32
inc esi
call ebx
mov eax, dword [0x62b058]
test eax, eax
jne 0x40a2f0
jmp 0x40a310
test eax, eax
jne 0x40a6ac
cmp dword [0x62b080], 0
mov dword [0x62b058], 1
mov dword [0x604f20], 0
mov dword [0x62b064], 0
jne 0x40a34a
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
push 0xfffffffffffffff6
call esi
mov dword [0x604f24], eax
call fcn.0040b9e0
test ax, ax
je 0x40a6ac
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.00409f80
cmp dword [0x62b080], 0
jne 0x40a38c
push 0
push 0
push dword [ebp + 8]
mov dword [0x604f20], 0
push 0x40a1c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [0x62b090]
test edi, edi
jle 0x40a3c6
mov edx, dword [0x62b078]
mov esi, dword [0x62b098]
xor ecx, ecx
test esi, esi
jle 0x40a3be
nop dword [eax + eax]
mov eax, dword [edx]
mov dword [eax + ecx*8], 0xff
inc ecx
cmp ecx, esi
jl 0x40a3b0
add edx, 4
sub edi, 1
jne 0x40a3a2
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
call fcn.00409450
push 0x64
call ebx
cmp dword [0x604f20], 0
jne 0x40a5ea
mov edi, dword [0x62b090]
test edi, edi
jle 0x40a41a
mov edx, dword [0x62b078]
mov esi, dword [0x62b098]
nop word [eax + eax]
xor eax, eax
test esi, esi
jle 0x40a412
mov ecx, dword [edx]
mov byte [ecx + eax*8 + 4], 0
inc eax
cmp eax, esi
jl 0x40a406
add edx, 4
sub edi, 1
jne 0x40a400
push dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ecx, 1
call fcn.004095a0
add esp, 4
cmp dword [0x604f20], 0
jne 0x40a5ea
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
call fcn.0040b6e0
cmp eax, 1
je 0x40a5e0
mov eax, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x10], edx
cmp dword [0x62b090], edx
jle 0x40a57d
nop dword [eax + eax]
xor edi, edi
cmp dword [0x62b098], edi
jle 0x40a568
nop
mov ecx, dword [0x62b08c]
mov esi, dword [0x62b06c]
imul ecx, edi
imul esi, edx
cmp dword [0x604f20], 0
mov dword [esp + 0x20], ecx
jne 0x40a564
cmp dword [0x62b064], 0
je 0x40a4be
push 0x32
call ebx
cmp dword [0x604f20], 0
je 0x40a4a3
jmp 0x40a564
mov eax, dword [0x604f30]
cmp eax, dword [0x604f2c]
jne 0x40a564
mov eax, dword [0x62b078]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + edx*4]
mov al, byte [eax + edi*8 + 4]
cmp al, 1
je 0x40a557
cmp al, 3
je 0x40a557
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x30]
push edi
push edx
push dword [esp + 0x20]
mov edx, esi
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040b380
add esp, 0x14
cmp eax, 1
je 0x40a553
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x40a553
cmp dword [0x604f20], 0
jne 0x40a553
push dword [esp + 0x14]
push dword [esp + 0x34]
push esi
call dword [esp + 0x28]
add esp, 0xc
cmp eax, 0xfffffffc
je 0x40a540
test eax, eax
jne 0x40a54a
mov dword [0x62b064], 1
jmp 0x40a54a
mov dword [0x604f20], 1
push esi
call fcn.0058c812
add esp, 4
mov edx, dword [esp + 0x10]
inc edi
cmp edi, dword [0x62b098]
jl 0x40a480
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
cmp edx, dword [0x62b090]
jl 0x40a470
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40a58a
push eax
call fcn.0058c812
add esp, 4
cmp dword [0x604f20], 0
xorps xmm0, xmm0
mov esi, dword [0x62b07c]
mov dword [esp + 0x18], 0
movlpd qword [esp + 0x20], xmm0
jne 0x40a5ea
nop word [eax + eax]
test esi, esi
jle 0x40a3e4
cmp esi, 0x32
jle 0x40a5c6
push 0x32
sub esi, 0x32
call ebx
jmp 0x40a5cb
push esi
call ebx
xor esi, esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
cmp dword [0x604f20], 0
je 0x40a5b0
jmp 0x40a5ea
mov dword [0x604f20], 1
cmp dword [0x62b078], 0
je 0x40a631
xor esi, esi
cmp dword [0x62b090], esi
jle 0x40a619
nop dword [eax]
mov eax, dword [0x62b078]
push dword [eax + esi*4]
call fcn.0058c812
inc esi
add esp, 4
cmp esi, dword [0x62b090]
jl 0x40a600
push dword [0x62b078]
call fcn.0058c812
add esp, 4
mov dword [0x62b078], 0
mov eax, dword [0x62b0ac]
test eax, eax
je 0x40a643
push eax
call fcn.0058c812
add esp, 4
push dword [0x62b118]
mov dword [0x62b0b4], 0
mov dword [0x62b0ac], 0
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
push dword [0x62b0d8]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [0x62b114]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x62b0b0]
test eax, eax
je 0x40a68d
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp + 8]
mov dword [0x62b0b0], 0
mov dword [0x62b058], 0
call fcn.0058c812
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4