Function at 0x401520
Capabilities:
Create thread
Enumerate threads
Hide graphical window
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x405040]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 8]
xorps xmm0, xmm0
mov dword [esp + 8], 0
push edi
push eax
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x14], 0x4011b0
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], str.Ran_Online
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x401770
push 0
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.Ran_Online
push str.Ran_Online
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x401770
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0xdac
push 1
push esi
call dword [sym.imp.USER32.dll_SetTimer]
push 8
call fcn.00401a5c
add esp, 4
lea ecx, [esp + 0x54]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x4019f0
push 0
push 0
mov dword [eax + 4], 0x401510
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esp + 0x50], eax
test eax, eax
je 0x401760
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [esp + 0x58]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x401643
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x58]
push eax
call edi
lea eax, [esp + 0x58]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x64]
push eax
call esi
test eax, eax
jne 0x401624
push 0x405684
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
jne 0x401758
mov eax, dword [0x4056b0]
cmp eax, 0x7fffffff
jne 0x401673
dec eax
push 6
mov dword [0x4056b0], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
cmp dword [0x405478], 0
je 0x4016fb
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x4016f3
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x4016f0
nop dword [eax + eax]
push dword [0x405478]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
cmp dword [esp + 0x40], eax
jne 0x4016e0
push dword [esp + 0x3c]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x4016e0
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call ebx
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x4016b0
push edi
call ebx
push dword [0x405478]
call ebx
push 0x405684
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
cmp dword [esp + 0x54], 0
jne 0x401718
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
call dword [sym.imp.MSVCP140.dll__Thrd_id]
mov ecx, dword [esp + 0x54]
cmp ecx, eax
je 0x401758
push 0
push ecx
push dword [esp + 0x58]
call dword [sym.imp.MSVCP140.dll__Thrd_join]
add esp, 0xc
test eax, eax
je 0x401742
push 2
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00401a4e
mov esp, ebp
pop ebp
ret 0x10
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 6
mov dword [esp + 0x58], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov ecx, dword [esp + 0x74]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401a4e
mov esp, ebp
pop ebp
ret 0x10