Function at 0x4071b0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [0x40c004]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call dword [sym.imp.steam_api.dll_SteamAPI_Init]
test al, al
je 0x4075b0
push 0
mov dword [0x40cf80], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x7f00
push esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], 0x4075d0
mov dword [esp + 0x3c], str.Workshop_Managers
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], 3
call dword [sym.imp.USER32.dll_RegisterClassA]
mov al, byte [0x40cd7f]
cmp al, 1
jne 0x40734e
push 0x9c
lea eax, [esp + 0x6c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
add esp, 0xc
mov eax, 0x9c
mov dword [esp + 0xd4], 0x3c0
mov word [esp + 0x8c], ax
lea eax, [esp + 0x68]
mov dword [esp + 0xd8], 0x280
push 4
push eax
mov dword [esp + 0xd8], 0x20
mov dword [esp + 0x98], 0x1c0000
call edi
push 4
lea eax, [esp + 0x6c]
push eax
call edi
test eax, eax
je 0x4072c6
push 0
lea eax, [esp + 0x6c]
push eax
call edi
push 0
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0
push 1
call esi
push eax
push 0
call esi
push eax
push 0
push 0
push 0x81880000
push str.Workshop_Managers
push str.Workshop_Managers
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
movaps xmm0, xmmword [0x4099c0]
push 0
mov dword [0x40cf84], eax
lea eax, [esp + 0x40]
push 0xc80000
push eax
movups xmmword [esp + 0x48], xmm0
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
push 6
push eax
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
push eax
push 0x2f8
push 0x5a0
push 0
push dword [0x40cf84]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 3
jmp 0x4073e5
test al, al
jne 0x4073f1
push 0
push dword [0x40cf80]
push 0
push 0
push 0x280
push 0x3c0
push 0xdc
push 0x1e0
push 0xcf0000
push str.Workshop_Managers
push str.Workshop_Managers
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x40cf84], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
movaps xmm0, xmmword [0x4099c0]
lea eax, [esp + 0x3c]
push 0
push 0xc80000
push eax
movups xmmword [esp + 0x48], xmm0
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
push 6
push eax
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
push eax
push 0x2f8
push 0x5a0
push 0
push dword [0x40cf84]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp + 0x14]
push dword [0x40cf84]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x40cf84]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, 0x40c0b0
call fcn.00401bb0
test eax, eax
js 0x4075b0
nop
push 1
push 0
push 0
push 0
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x407450
cmp dword [esp + 0x50], 0x12
je 0x40757a
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
call dword [sym.imp.steam_api.dll_SteamAPI_RunCallbacks]
jmp 0x407410
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [0x40cf84]
jne 0x40756f
mov esi, dword [0x40cf90]
test esi, esi
je 0x40755b
cmp byte [esi], 0
lea edi, [esi + 0x10]
je 0x407481
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x407490
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [edi], eax
mov dword [edi + 4], 0
mov ebx, dword [edi]
mov ecx, ebx
mov eax, dword [edi + 4]
mov edx, eax
sub ecx, dword [esi + 0x18]
mov dword [esp + 0x10], eax
sbb edx, dword [esi + 0x1c]
call fcn.004083f0
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [0x4099a0]
mulss xmm1, dword [esi + 4]
comiss xmm0, xmm1
movss dword [esi + 8], xmm1
jbe 0x407519
cmp byte [esi], 0
je 0x4074d4
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x4074e3
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [edi], eax
mov dword [edi + 4], 0
mov ebx, dword [edi]
mov ecx, ebx
mov eax, dword [edi + 4]
mov edx, eax
sub ecx, dword [esi + 0x18]
mov dword [esp + 0x10], eax
sbb edx, dword [esi + 0x1c]
call fcn.004083f0
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [0x4099a0]
mulss xmm1, dword [esi + 4]
comiss xmm0, xmm1
movss dword [esi + 8], xmm1
ja 0x4074c6
mov eax, dword [esp + 0x10]
movaps xmm0, xmm1
addss xmm0, dword [esi + 0x30]
addss xmm1, dword [esi + 0x34]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x2c]
inc eax
mov dword [esi + 0x18], ebx
comiss xmm0, dword [0x4099ac]
mov dword [esi + 0x2c], eax
movss dword [esi + 0x30], xmm0
movss dword [esi + 0x34], xmm1
jbe 0x40755b
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov ecx, 0x40c0b0
call fcn.00402690
mov ecx, 0x40c0b0
call fcn.00403660
call dword [sym.imp.steam_api.dll_SteamAPI_RunCallbacks]
jmp 0x407410
mov ecx, 0x40c0b0
call fcn.00402480
push dword [0x40cf80]
push str.Workshop_Managers
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, dword [esp + 0x54]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00407686
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x10c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407686
mov esp, ebp
pop ebp
ret 0x10