Function at 0x1400316c0
Capabilities:
Hide graphical window

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x1730]
mov eax, 0x1830
call fcn.140157830
sub rsp, rax
mov rax, qword [0x1401b7030]
xor rax, rsp
mov qword [rbp + 0x1710], rax
mov rax, qword [rcx + 0xd748]
mov rbx, rcx
cmp byte [rax + 0x355], 0
je 0x14003182c
mov rcx, qword [rcx + 0xd760]
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0xd760]
mov edx, 0xfffffff0
call qword [sym.imp.USER32.dll_GetWindowLongA]
mov rcx, qword [rbx + 0xd760]
mov edx, 0xfffffff0
and eax, 0xff3bffff
mov r8d, eax
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rax, qword [rbx + 0xd748]
xor r9d, r9d
mov dword [rsp + 0x30], 0x23
xor r8d, r8d
mov dword [rsp + 0x28], WSAAsyncSelect
mov dword [rsp + 0x20], WSAAsyncSelect
mov byte [rax + 0x325], 0
lea rdx, [r9 - 2]
mov rcx, qword [rbx + 0xd760]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rbx + 0x12d0]
xor edi, edi
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rbx + 0x5250]
lea edx, [rdi + 0x71]
xor r8d, r8d
call qword [sym.imp.USER32.dll_CheckMenuItem]
mov rcx, qword [rbx + 0x1398]
lea edx, [rdi + 1]
xor r9d, r9d
mov qword [rbx + 0x13ac], 1
lea r8d, [rdi + 0x14]
mov dword [rbx + 0x13a0], edi
call qword [sym.imp.USER32.dll_SetTimer]
cmp dword [rbx + 0x13a4], 1
lea edx, [rdi + 2]
mov rcx, qword [rbx + 0x1398]
jne 0x140031800
xor r9d, r9d
lea r8d, [rdi + 0x64]
call qword [sym.imp.USER32.dll_SetTimer]
jmp 0x140031806
call qword [sym.imp.USER32.dll_KillTimer]
mov rcx, qword [rbx + 0x12d8]
test rcx, rcx
je 0x140031d15
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_RedrawWindow]
jmp 0x140031d15
movzx eax, byte [rax + 0x321]
cmp byte [rcx + 0x5615], al
je 0x140031848
mov byte [rcx + 0x5615], al
mov byte [rcx + 0x5614], 0
mov rdi, qword [rcx + 0xd760]
mov qword [rsp + 0x1820], r15
call fcn.140048940
test eax, eax
je 0x140031873
mov edx, 2
mov rcx, rdi
call qword [0x1401ba700]
mov r15, rax
jmp 0x140031879
mov r15d, 0x42
mov rcx, qword [rbx + 0xd760]
mov edx, 0xfffffff0
call qword [sym.imp.USER32.dll_GetWindowLongA]
mov rax, qword [rbx + 0xd748]
cmp byte [rax + 0x321], 0
je 0x140031ba4
mov rcx, qword [rbx + 0xd760]
mov edx, 0xfffffff0
mov qword [rsp + 0x1858], rsi
mov qword [rsp + 0x1860], r12
mov qword [rsp + 0x1868], r13
mov qword [rsp + 0x1828], r14
call qword [sym.imp.USER32.dll_GetWindowLongA]
mov rcx, qword [rbx + 0xd760]
mov edx, 0xfffffff0
and eax, 0xff3bffff
or eax, 0x81000000
mov r8d, eax
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [rbx + 0xd760]
lea rdx, [rsp + 0x78]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov dword [rsp + 0x40], 0x28
call fcn.140048940
xor edi, edi
test eax, eax
je 0x140031925
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [0x1401ba718]
jmp 0x140031993
cmp r15, 0x42
jne 0x140031993
cmp dword [rsp + 0x40], 0x28
jb 0x140031993
xor edx, edx
lea r8, [rsp + 0x68]
xor r9d, r9d
lea ecx, [rdx + 0x30]
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x140031993
xor ecx, ecx
mov qword [rsp + 0x44], rdi
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea ecx, [r15 - 0x41]
mov dword [rsp + 0x4c], eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [rsp + 0x40], 0x48
movups xmm0, xmmword [rsp + 0x68]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x64], 1
movups xmmword [rsp + 0x54], xmm0
jb 0x140031993
lea rdx, str.DISPLAY
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rax, qword [rbx + 0xd748]
mov esi, dword [rsp + 0x4c]
mov r14d, dword [rsp + 0x50]
mov r12d, dword [rsp + 0x44]
sub esi, r12d
mov r13d, dword [rsp + 0x48]
sub r14d, r13d
cmp byte [rax + 0x6d1], dil
je 0x140031a1c
cmp byte [rax + 0x6d4], dil
jne 0x140031a1c
lea rcx, str.user32.dll
mov dword [rbp - 0x70], edi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [rbp - 0x70]
mov qword [rbp + 0x1708], rax
call fcn.14003d110
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [rbp - 0x70]
mov qword [rbp + 0x1708], rax
call fcn.14003d110
mov rcx, qword [rbp + 0x1708]
mov r12d, edi
mov r14d, dword [rbp - 0x64]
mov r13d, edi
mov esi, dword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbx + 0xd760]
mov r9d, r13d
mov dword [rsp + 0x30], 0x20
mov r8d, r12d
mov dword [rsp + 0x28], r14d
mov rdx, 0xffffffffffffffff
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rcx, [rbx + 0x1350]
mov rdx, r15
call fcn.140049fb0
mov rcx, qword [rbx + 0x5250]
mov edx, WSACleanup
lea r8d, [rdx - 0x69]
call qword [sym.imp.USER32.dll_CheckMenuItem]
mov rax, qword [rbx + 0xd748]
xor r8d, r8d
mov rdx, qword [rbx + 0x12d0]
mov rcx, qword [rbx + 0x12b8]
mov r13, qword [rsp + 0x1868]
mov r12, qword [rsp + 0x1860]
mov dword [rsp + 0x30], 0x40
cmp byte [rax + 0x325], dil
je 0x140031ac2
mov eax, dword [rbx + 0x526c]
mov r9d, dword [rbx + 0x2c0]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0x5268]
mov dword [rsp + 0x20], eax
jmp 0x140031af3
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rbx + 0x12d0]
xor r9d, r9d
mov dword [rsp + 0x30], 0x80
xor r8d, r8d
mov dword [rsp + 0x28], edi
xor edx, edx
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rbx + 0x1398]
mov edx, 5
mov qword [rbx + 0x13ac], rdi
mov dword [rbx + 0x13a0], 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x1398]
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 0x14]
call qword [sym.imp.USER32.dll_SetTimer]
cmp dword [rbx + 0x13a4], 1
mov edx, 2
mov rcx, qword [rbx + 0x1398]
mov r14, qword [rsp + 0x1828]
mov rsi, qword [rsp + 0x1858]
jne 0x140031b68
xor r9d, r9d
lea r8d, [rdx + 0x62]
call qword [sym.imp.USER32.dll_SetTimer]
jmp 0x140031b6e
call qword [sym.imp.USER32.dll_KillTimer]
mov rax, qword [rbx + 0xd748]
cmp byte [rax + 0x31e], dil
je 0x140031b91
mov rax, qword [rbx + 0x4ee0]
mov qword [rbx + 0x1450], rax
jmp 0x140031d0d
mov rax, qword [rbx + 0x4ed8]
mov qword [rbx + 0x1450], rax
jmp 0x140031d0d
mov r8d, dword [rbx + 0x526c]
xor edi, edi
mov r9d, dword [rbx + 0x5268]
mov rdx, qword [rbx + 0x12d0]
mov rcx, qword [rbx + 0x12b8]
mov dword [rsp + 0x30], 0x40
mov dword [rsp + 0x28], r8d
xor r8d, r8d
mov dword [rsp + 0x20], r9d
cmp byte [rax + 0x325], dil
je 0x140031be9
mov r9d, dword [rbx + 0x2c0]
jmp 0x140031c11
xor r9d, r9d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rbx + 0x12d0]
xor r9d, r9d
mov dword [rsp + 0x30], 0x80
xor r8d, r8d
mov dword [rsp + 0x28], edi
xor edx, edx
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rbx + 0xd760]
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0xd760]
mov edx, 0xfffffff0
call qword [sym.imp.USER32.dll_GetWindowLongA]
mov rcx, qword [rbx + 0xd760]
mov edx, 0xfffffff0
and eax, 0x7e3bffff
or eax, 0xc40000
mov r8d, eax
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [rbx + 0xd760]
xor r9d, r9d
mov dword [rsp + 0x30], 0x2b
xor r8d, r8d
mov dword [rsp + 0x28], WSAAsyncSelect
mov dword [rsp + 0x20], WSAAsyncSelect
lea rdx, [r9 - 2]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rbx + 0x5250]
xor r8d, r8d
lea edx, [r8 + 0x71]
call qword [sym.imp.USER32.dll_CheckMenuItem]
mov rcx, qword [rbx + 0x1398]
xor r9d, r9d
mov qword [rbx + 0x13ac], 1
mov dword [rbx + 0x13a0], edi
lea edx, [r9 + 1]
lea r8d, [r9 + 0x14]
call qword [sym.imp.USER32.dll_SetTimer]
cmp dword [rbx + 0x13a4], 1
mov edx, 2
mov rcx, qword [rbx + 0x1398]
jne 0x140031cea
xor r9d, r9d
lea r8d, [rdx + 0x62]
call qword [sym.imp.USER32.dll_SetTimer]
jmp 0x140031cf0
call qword [sym.imp.USER32.dll_KillTimer]
mov rcx, qword [rbx + 0x12d8]
test rcx, rcx
je 0x140031d0d
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_RedrawWindow]
mov r15, qword [rsp + 0x1820]
mov rcx, qword [rbp + 0x1710]
xor rcx, rsp
call fcn.14011c340
add rsp, 0x1830
pop rdi
pop rbx
pop rbp
ret