Function at 0x409a50
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 [0x6233d8]
mov dword [esp + 0x1c], edi
test eax, eax
je 0x409aa0
nop dword [eax]
cmp esi, 0xc8
jge 0x409a98
push 0x32
inc esi
call ebx
mov eax, dword [0x6233d8]
test eax, eax
jne 0x409a80
jmp 0x409aa0
test eax, eax
jne 0x409e3c
cmp dword [0x623400], 0
mov dword [0x6233d8], 1
mov dword [0x6038e8], 0
mov dword [0x6233e4], 0
jne 0x409ada
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
push 0xfffffffffffffff6
call esi
mov dword [0x6038ec], eax
call fcn.0040b180
test ax, ax
je 0x409e3c
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.00409710
cmp dword [0x623400], 0
jne 0x409b1c
push 0
push 0
push dword [ebp + 8]
mov dword [0x6038e8], 0
push 0x409950
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [0x623410]
test edi, edi
jle 0x409b56
mov edx, dword [0x6233f8]
mov esi, dword [0x623418]
xor ecx, ecx
test esi, esi
jle 0x409b4e
nop dword [eax + eax]
mov eax, dword [edx]
mov dword [eax + ecx*8], 0xff
inc ecx
cmp ecx, esi
jl 0x409b40
add edx, 4
sub edi, 1
jne 0x409b32
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
call fcn.00408be0
push 0x64
call ebx
cmp dword [0x6038e8], 0
jne 0x409d7a
mov edi, dword [0x623410]
test edi, edi
jle 0x409baa
mov edx, dword [0x6233f8]
mov esi, dword [0x623418]
nop word [eax + eax]
xor eax, eax
test esi, esi
jle 0x409ba2
mov ecx, dword [edx]
mov byte [ecx + eax*8 + 4], 0
inc eax
cmp eax, esi
jl 0x409b96
add edx, 4
sub edi, 1
jne 0x409b90
push dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ecx, 1
call fcn.00408d30
add esp, 4
cmp dword [0x6038e8], 0
jne 0x409d7a
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
call fcn.0040ae80
cmp eax, 1
je 0x409d70
mov eax, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x10], edx
cmp dword [0x623410], edx
jle 0x409d0d
nop dword [eax + eax]
xor edi, edi
cmp dword [0x623418], edi
jle 0x409cf8
nop
mov ecx, dword [0x62340c]
mov esi, dword [0x6233ec]
imul ecx, edi
imul esi, edx
cmp dword [0x6038e8], 0
mov dword [esp + 0x20], ecx
jne 0x409cf4
cmp dword [0x6233e4], 0
je 0x409c4e
push 0x32
call ebx
cmp dword [0x6038e8], 0
je 0x409c33
jmp 0x409cf4
mov eax, dword [0x6038f8]
cmp eax, dword [0x6038f4]
jne 0x409cf4
mov eax, dword [0x6233f8]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + edx*4]
mov al, byte [eax + edi*8 + 4]
cmp al, 1
je 0x409ce7
cmp al, 3
je 0x409ce7
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.0040ab20
add esp, 0x14
cmp eax, 1
je 0x409ce3
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x409ce3
cmp dword [0x6038e8], 0
jne 0x409ce3
push dword [esp + 0x14]
push dword [esp + 0x34]
push esi
call dword [esp + 0x28]
add esp, 0xc
cmp eax, 0xfffffffc
je 0x409cd0
test eax, eax
jne 0x409cda
mov dword [0x6233e4], 1
jmp 0x409cda
mov dword [0x6038e8], 1
push esi
call fcn.0058bf82
add esp, 4
mov edx, dword [esp + 0x10]
inc edi
cmp edi, dword [0x623418]
jl 0x409c10
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
cmp edx, dword [0x623410]
jl 0x409c00
mov eax, dword [esp + 0x18]
test eax, eax
je 0x409d1a
push eax
call fcn.0058bf82
add esp, 4
cmp dword [0x6038e8], 0
xorps xmm0, xmm0
mov esi, dword [0x6233fc]
mov dword [esp + 0x18], 0
movlpd qword [esp + 0x20], xmm0
jne 0x409d7a
nop word [eax + eax]
test esi, esi
jle 0x409b74
cmp esi, 0x32
jle 0x409d56
push 0x32
sub esi, 0x32
call ebx
jmp 0x409d5b
push esi
call ebx
xor esi, esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
cmp dword [0x6038e8], 0
je 0x409d40
jmp 0x409d7a
mov dword [0x6038e8], 1
cmp dword [0x6233f8], 0
je 0x409dc1
xor esi, esi
cmp dword [0x623410], esi
jle 0x409da9
nop dword [eax]
mov eax, dword [0x6233f8]
push dword [eax + esi*4]
call fcn.0058bf82
inc esi
add esp, 4
cmp esi, dword [0x623410]
jl 0x409d90
push dword [0x6233f8]
call fcn.0058bf82
add esp, 4
mov dword [0x6233f8], 0
mov eax, dword [0x62342c]
test eax, eax
je 0x409dd3
push eax
call fcn.0058bf82
add esp, 4
push dword [0x623498]
mov dword [0x623434], 0
mov dword [0x62342c], 0
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
push dword [0x623458]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [0x623494]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x623430]
test eax, eax
je 0x409e1d
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp + 8]
mov dword [0x623430], 0
mov dword [0x6233d8], 0
call fcn.0058bf82
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4