Function at 0x4093f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
cmp dword [esi + 4], 0
push edi
jne 0x409417
cmp dword [ebp + 8], 0
jne 0x409417
cmp dword [esi + 0x528], 0
jne 0x409417
mov edi, 0x80070057
jmp 0x4094d3
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x40942f
mov ecx, dword [eax]
mov dword [esi + 0x52c], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x530], edx
call fcn.00408e60
mov edi, eax
test edi, edi
jl 0x4094d3
cmp dword [esi + 0x528], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov dword [esi + 0x90], ecx
mov dword [esi + 0x94], edx
jne 0x409540
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
push 0
push 0
mov dword [esi + 0x540], eax
mov eax, dword [ebp + 0x2c]
mov dword [esi + 0x544], ecx
mov ecx, dword [ebp + 0x28]
push 1
push 0
mov dword [esi + 0x548], edx
mov dword [esi + 0x550], eax
mov dword [esi + 0x54c], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x53c], eax
test eax, eax
jne 0x40950c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
call edi
test eax, 0x20000000
je 0x4094fc
test eax, eax
jle 0x4094cd
and eax, 0xffff
or eax, 0xa0070000
mov edi, eax
test edi, edi
jge 0x4094f3
mov eax, dword [esi + 4]
test eax, eax
je 0x4094f3
cmp dword [esi + 0x528], 0
jne 0x4094f3
push 0
push 0
push 0x466
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0x2c
test eax, eax
jle 0x4094cd
and eax, 0xffff
or eax, 0x80070000
jmp 0x4094cd
push 0
push 0
push esi
push 0x4093a0
push 0
push 0
call ebx
mov dword [esi + 0x538], eax
test eax, eax
je 0x4094ae
mov edx, dword [esi + 0x53c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 4]
push 0
push eax
call sub.IMM32.dll_ImmAssociateContext
push esi
call fcn.00408de0
mov edi, eax
test edi, edi
jl 0x4094d3
call fcn.00408c60
mov edi, eax
test edi, edi
jl 0x4094d3
cmp dword [esi + 0x528], 0
jne 0x409637
lea ecx, [esi + 0x524]
push ecx
call fcn.00422840
mov edx, dword [esi + 0xb4]
add esp, 4
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esi + 0xb8], eax
mov eax, dword [esi + 0xb4]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
push esi
push 0xffffffffffffffeb
push ecx
mov dword [esi + 0xbc], eax
call edi
mov eax, dword [esi + 4]
push 0x40a5a0
push 0xfffffffffffffffc
push eax
call edi
mov edx, dword [esi + 4]
push 0
push 0xa
push 0
push edx
mov dword [esi], eax
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [esi + 4]
push 0
push eax
call sub.IMM32.dll_ImmAssociateContext
cmp dword [esi + 0x4f4], 0
je 0x4095f4
mov edi, esi
call fcn.00408d10
mov edi, eax
test edi, edi
jl 0x4094d3
cmp dword [esi + 0x9c], 0
jne 0x409637
mov edx, dword [0x4d42ec]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x104
lea ecx, [esi + 0xc0]
push ecx
push 0xcc
push edx
call edi
mov ecx, dword [0x4d42ec]
push 0x104
lea eax, [esi + 0x2c8]
push eax
push 0xcd
push ecx
call edi
mov ecx, dword [esi + 0x4fc]
test ecx, ecx
je 0x409650
call fcn.00408fc0
mov edi, eax
test edi, edi
jl 0x4094d3
mov ecx, dword [esi + 0x500]
test ecx, ecx
je 0x409669
call fcn.00408fc0
mov edi, eax
test edi, edi
jl 0x4094d3
push 0
push 0
push esi
push 0x4093c0
push 0
push 0
call ebx
mov dword [esi + 0x55c], eax
test eax, eax
je 0x4094ae
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x2c