Function at 0x140005170
Capabilities:
Link many functions at runtime

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov r15d, r9d
mov r14, r8
mov rsi, rdx
mov r12, rcx
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0xb8], rax
call fcn.140045c10
mov qword [0x140129f18], r12
mov qword [0x140129f10], rsi
call fcn.14003dc80
call fcn.140024af0
call fcn.14002aac0
call fcn.1400223e0
call fcn.140047360
cmp dword [0x14012ce30], 4
jb 0x1400051e9
jne 0x1400051fc
cmp dword [0x14012ce38], 2
je 0x1400051fc
lea rcx, str.MSWHEEL_ROLLMSG
call qword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [section..data], eax
call fcn.14000d100
lea rcx, str.user32.dll
call fcn.140045c80
mov rsi, rax
lea rcx, str.winmm.dll
call fcn.140045c80
mov rdi, rax
lea rcx, str.shcore.dll
call fcn.140045c80
mov rbp, rax
test rsi, rsi
je 0x14000525b
lea rdx, str.FlashWindowEx
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call rbx
mov qword [0x14012b238], rax
lea rdx, str.ToUnicodeEx
mov rcx, rsi
call rbx
jmp 0x140005268
mov qword [0x14012b238], 0
xor eax, eax
mov qword [0x14012b330], rax
test rdi, rdi
je 0x140005286
lea rdx, str.PlaySoundA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140005288
xor eax, eax
mov qword [0x14012b228], rax
test rsi, rsi
je 0x1400052cf
lea rdx, str.GetMonitorInfoA
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call rdi
mov qword [0x14012b2d0], rax
lea rdx, str.MonitorFromPoint
mov rcx, rsi
call rdi
mov qword [0x14012b2d8], rax
lea rdx, str.MonitorFromWindow
mov rcx, rsi
call rdi
jmp 0x1400052e7
mov qword [0x14012b2d0], 0
mov qword [0x14012b2d8], 0
xor eax, eax
mov qword [0x14012b278], rax
test rbp, rbp
je 0x140005305
lea rdx, str.GetDpiForMonitor
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140005307
xor eax, eax
mov qword [0x14012b270], rax
test rsi, rsi
je 0x14000533b
lea rdx, str.GetSystemMetricsForDpi
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call rdi
mov qword [0x14012b248], rax
lea rdx, str.AdjustWindowRectExForDpi
mov rcx, rsi
call rdi
jmp 0x140005348
mov qword [0x14012b248], 0
xor eax, eax
mov qword [0x14012b250], rax
call fcn.1400409e0
mov qword [0x140129f28], rax
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
cmp eax, 1
jbe 0x1400053cf
mov rdx, qword [0x1400e8210]
lea rcx, str._s_Fatal_Error
call fcn.140042250
mov rsi, rax
lea rdx, str.Failed_to_initialize_COM_subsystem
xor ecx, ecx
mov r8, rax
mov r9d, 0x30
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rsi
call fcn.140042f50
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400b8cc0
mov eax, 1
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x6c], r15d
mov rcx, qword [0x140129f28]
mov rdx, r14
call fcn.14000cad0
lea rcx, [0x140129f30]
mov r8d, 0xb0c
xor edx, edx
call fcn.1400ba5e0
mov rcx, qword [0x140129f28]
mov edx, 0x6f
call fcn.140040d20
mov dword [0x14012ab60], eax
mov rcx, qword [0x140129f28]
mov edx, 0xa6
call fcn.140040d20
mov dword [0x14012ab64], eax
mov dword [0x14012aa3c], 0xa
mov dword [0x14012aa40], 0x14
mov dword [0x14012aa44], 0x19
mov dword [0x14012aa48], 0x1c
mov rcx, qword [0x140129f28]
mov edx, 0x7e
call fcn.140040d20
lea eax, [rax + rax*4]
lea edi, [rax + rax]
add edi, 0x19
mov ebx, dword [0x14012aa48]
mov ebp, dword [0x14012aa40]
mov rcx, qword [0x140129f28]
mov edx, 0x7f
call fcn.140040d20
mov esi, eax
imul esi, ebp
add esi, ebx
cmp qword [0x14012b2d0], 0
je 0x1400054da
mov rax, qword [0x14012b278]
test rax, rax
je 0x1400054da
mov rcx, qword [0x140129008]
mov edx, 2
call rax
mov dword [rsp + 0x80], 0x28
lea rdx, [rsp + 0x80]
mov rcx, rax
call qword [0x14012b2d0]
movups xmm0, xmmword [rsp + 0x84]
movaps xmmword [rsp + 0x70], xmm0
jmp 0x1400054ee
call qword [sym.imp.USER32.dll_GetDesktopWindow]
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov r15d, dword [rsp + 0x78]
mov ebp, dword [rsp + 0x7c]
sub r15d, dword [rsp + 0x70]
cmp edi, r15d
cmovle r15d, edi
sub ebp, dword [rsp + 0x74]
cmp esi, ebp
cmovle ebp, esi
mov ecx, dword [0x1400e8218]
call fcn.140036960
test rax, rax
jne 0x140005520
xor edi, edi
jmp 0x14000552b
mov dil, byte [rax + 0xa8]
and dil, 1
mov rsi, qword [0x1400e8210]
xor ecx, ecx
xor edx, edx
mov r8, rsi
call fcn.1400422c0
mov r14, rax
xor ecx, ecx
xor edx, edx
mov r8, rsi
call fcn.1400422c0
mov qword [0x14012aa50], rax
xor ecx, ecx
xor edx, edx
mov r8, rsi
call fcn.1400422c0
mov qword [0x14012aa58], rax
mov rcx, qword [0x140129f28]
mov edx, pe_nt_image_headers64
call fcn.140040c60
movzx esi, al
shl esi, 0x15
or esi, 0xcf0000
mov rcx, qword [0x140129f28]
mov edx, 0x7a
call fcn.140040d20
mov ecx, esi
and ecx, 0xea0000
test dil, dil
cmovne esi, ecx
cmp eax, 1
cmove esi, ecx
mov rcx, qword [0x140129f28]
mov edx, 0x61
call fcn.140040c60
movzx edi, al
lea ebx, [rdi*8]
mov rcx, qword [0x140129f28]
mov edx, 0x8a
call fcn.140040c60
lea edi, [rdi*8 + 0x200]
test al, al
cmove edi, ebx
mov byte [0x14012aa60], 1
call fcn.140001080
mov qword [rsp + 0x50], r12
xorps xmm6, xmm6
movups xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
mov ecx, edi
mov rdx, rax
mov r8, r14
mov r9d, esi
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x140129008], rax
test rax, rax
jne 0x140005655
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140047480
lea rcx, str.Unable_to_create_terminal_window:__s
mov rdx, rax
call fcn.140006000
movups xmmword [0x14012aa64], xmm6
mov qword [0x14012aa74], 0
cmp qword [0x14012b270], 0
je 0x1400056d0
mov rbp, qword [0x14012b278]
test rbp, rbp
je 0x1400056d0
mov rcx, rax
mov edx, 1
call rbp
lea r8, [rsp + 0x80]
lea r9, [rsp + 0x70]
mov rcx, rax
xor edx, edx
call qword [0x14012b270]
test eax, eax
jne 0x1400056bc
mov ecx, dword [rsp + 0x80]
mov dword [0x14012aa64], ecx
mov eax, dword [rsp + 0x70]
mov dword [0x14012aa68], eax
jmp 0x1400056c8
mov ecx, dword [0x14012aa64]
mov eax, dword [0x14012aa68]
test ecx, ecx
je 0x1400056d0
test eax, eax
jne 0x140005717
mov rcx, qword [0x140129008]
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
mov rdi, qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov rcx, rax
mov edx, 0x58
call rdi
mov dword [0x14012aa64], eax
mov rcx, rsi
mov edx, 0x5a
call rdi
mov dword [0x14012aa68], eax
mov rcx, qword [0x140129008]
mov rdx, rsi
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, r14
call fcn.140042f50
xor esi, esi
xor ecx, ecx
xor edx, edx
call fcn.140006080
mov qword [0x14012ab00], 0
mov ecx, 1
mov edx, 8
mov r8d, 0x414
call fcn.140042eb0
mov qword [0x14012aaf8], rax
mov dword [rax], 0x1060300
nop word [rax + rax]
mov byte [rax + rsi*4 + 7], 4
mov byte [rax + rsi*4 + 0xb], 4
add rsi, 2
cmp rsi, 0x106
jne 0x140005760
lea rax, [0x1400e8008]
mov qword [0x14012aa80], rax
lea r8, [0x14012aa80]
mov rcx, qword [0x140129f28]
lea rdx, [0x140129f30]
call fcn.1400107d0
mov rsi, rax
mov qword [0x14012aa88], rax
mov rdi, qword [0x140129f28]
cmp dword [rax + 0x11d8], 1
je 0x1400057d2
lea rcx, str.term__mouse_select_clipboards_0___CLIP_LOCAL
lea rdx, str._home_simon_mem_.build_workdirs_bob_fffbk9my_putty_windows_window.c
mov r8d, 0x3dc
call fcn.1400c9b7c
mov dword [rsi + 0x11e4], 1
mov rcx, rdi
mov edx, 0x9f
call fcn.140040c60
test al, al
je 0x140005808
movsxd rax, dword [rsi + 0x11e4]
lea ecx, [rax + 1]
mov dword [rsi + 0x11e4], ecx
mov dword [rsi + rax*4 + 0x11d8], 2
mov rcx, rdi
mov edx, 0xa0
call fcn.140040d20
xor ecx, ecx
cmp eax, 2
sete cl
add ecx, ecx
cmp eax, 1
cmove ecx, eax
mov dword [rsi + 0x11e8], ecx
mov rdx, qword [0x140129f28]
lea rcx, [0x140129018]
call fcn.14002c040
mov qword [0x14012aa90], rax
mov rcx, qword [0x14012aa88]
mov rdx, rax
call fcn.140019ad0
mov rcx, qword [0x140129f28]
mov edx, 0x6b
call fcn.140040d20
mov esi, eax
mov rcx, qword [0x140129f28]
mov edx, 0x7e
call fcn.140040d20
mov edi, eax
mov rcx, qword [0x140129f28]
mov edx, 0x7f
call fcn.140040d20
mov rcx, qword [0x14012aa88]
mov edx, eax
mov r8d, edi
mov r9d, esi
call fcn.1400112e0
mov rcx, qword [0x140129008]
lea rdx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rcx, qword [0x140129008]
lea rdx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [0x140129f28]
mov edx, 0x8b
call fcn.140040d20
mov dword [0x14012aa98], eax
mov dword [0x14012aa9c], eax
add eax, eax
mov ecx, dword [rsp + 0x78]
add ecx, eax
mov edx, dword [rsp + 0x70]
add edx, dword [rsp + 0x88]
mov ebp, dword [rsp + 0x74]
sub ecx, edx
add ecx, dword [rsp + 0x80]
add eax, dword [rsp + 0x7c]
add ebp, dword [rsp + 0x8c]
sub eax, ebp
add eax, dword [rsp + 0x84]
mov dword [0x14012aa44], ecx
mov dword [0x14012aa48], eax
mov rdx, qword [0x14012aa88]
mov ebp, dword [rdx + 0x174]
mov edx, dword [rdx + 0x178]
imul edx, dword [0x14012aa3c]
add edx, ecx
imul ebp, dword [0x14012aa40]
add ebp, eax
mov rcx, qword [0x140129008]
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], edx
mov dword [rsp + 0x30], 0xe
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x14012aa3c]
lea ecx, [rax + 0xf]
add eax, 0x1e
test ecx, ecx
cmovns eax, ecx
sar eax, 4
imul eax, dword [0x14012aa40]
add eax, eax
movsxd rsi, eax
mov edx, 1
mov rcx, rsi
xor r8d, r8d
call fcn.140042eb0
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.1400ba5e0
mov edx, dword [0x14012aa40]
mov ecx, dword [0x14012aa3c]
mov qword [rsp + 0x20], rdi
mov r8d, 1
mov r9d, 1
call qword [sym.imp.GDI32.dll_CreateBitmap]
mov qword [0x14012aaa0], rax
mov rcx, rdi
call fcn.140042f50
mov r9d, dword [0x14012aa40]
mov r8d, dword [0x14012aa3c]
mov rdx, qword [0x14012aaa0]
mov rcx, qword [0x140129008]
call qword [sym.imp.USER32.dll_CreateCaret]
movabs rax, 0x1f0000001c
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], 0
mov rax, qword [0x14012aa88]
mov eax, dword [rax + 0x174]
lea ecx, [rax - 1]
mov dword [rsp + 0x8c], ecx
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x94], 0
mov rcx, qword [0x140129008]
lea r8, [rsp + 0x80]
mov edx, 1
xor r9d, r9d
call qword [sym.imp.USER32.dll_SetScrollInfo]
mov dword [0x14012aaa8], 0
mov dword [0x14012aaac], 0
call qword [sym.imp.USER32.dll_GetDoubleClickTime]
mov dword [0x14012aab0], eax
mov rcx, qword [0x140129008]
xor edx, edx
call qword [sym.imp.USER32.dll_GetSystemMenu]
mov qword [0x14012aac0], rax
call qword [sym.imp.USER32.dll_CreatePopupMenu]
mov qword [0x14012aac8], rax
lea r9, [0x1401023a0]
mov rbx, qword [sym.imp.USER32.dll_AppendMenuA]
mov r8d, 0x190
mov rcx, rax
xor edx, edx
call rbx
mov rcx, qword [0x14012aac8]
lea r9, str.Paste
mov r8d, 0x1a0
xor edx, edx
call rbx
call qword [sym.imp.USER32.dll_CreateMenu]
mov qword [0x14012aad0], rax
lea rcx, [0x14012aad8]
mov dl, 1
call fcn.14003c370
mov rsi, qword [sym.imp.USER32.dll_DeleteMenu]
nop dword [rax]
mov rcx, qword [0x14012aad0]
xor edx, edx
mov r8d, 0x400
call rsi
test eax, eax
jne 0x140005b00
cmp dword [0x14012aad8], 2
jl 0x140005b71
mov edi, 1
mov esi, 0x1000
nop dword [rax + rax]
mov rax, qword [0x14012aae0]
mov r9, qword [rax + rdi*8]
mov rcx, qword [0x14012aad0]
xor edx, edx
mov r8, rsi
call rbx
add rdi, 1
mov eax, dword [0x14012aad8]
cmp eax, 0x401
mov ecx, 0x401
cmovl ecx, eax
movsxd rcx, ecx
add rsi, 0x10
cmp rdi, rcx
jl 0x140005b30
cmp eax, 1
jg 0x140005b90
mov rcx, qword [0x14012aad0]
lea r9, str._No_sessions_
mov r8d, 0x1000
mov edx, 1
call qword [sym.imp.USER32.dll_AppendMenuA]
mov dil, 1
xor eax, eax
lea r15, str.Clear_Scrollback
lea r12, str.Reset_Terminal
lea r14, str.Full_Screen
lea r13, str.About__s
jmp 0x140005bfe
mov rcx, r13
mov rdx, qword [0x1400e8210]
call fcn.140042250
mov rbp, rax
mov r8d, 0x150
mov rcx, rsi
xor edx, edx
mov r9, rax
call rbx
mov rcx, rbp
call fcn.140042f50
mov eax, 1
test dil, 1
mov edi, 0
je 0x140005d42
lea rcx, [0x14012aac0]
mov rsi, qword [rcx + rax*8]
mov rcx, rsi
mov edx, 0x800
xor r8d, r8d
xor r9d, r9d
call rbx
mov r8d, 0x10
mov rcx, rsi
xor edx, edx
lea r9, str.Event_Log
call rbx
mov rcx, rsi
mov edx, 0x800
xor r8d, r8d
xor r9d, r9d
call rbx
mov r8d, 0x20
mov rcx, rsi
xor edx, edx
lea r9, str.New_Session...
call rbx
mov r8d, 0x30
mov rcx, rsi
xor edx, edx
lea r9, str.Duplicate_Session
call rbx
mov r8, qword [0x14012aad0]
mov rcx, rsi
mov edx, 0x10
lea r9, str.Saved_Sessions
call rbx
mov r8d, 0x50
mov rcx, rsi
xor edx, edx
lea r9, str.Change_Settings...
call rbx
mov rcx, rsi
mov edx, 0x800
xor r8d, r8d
xor r9d, r9d
call rbx
mov r8d, 0x170
mov rcx, rsi
xor edx, edx
lea r9, str.Copy_All_to_Clipboard
call rbx
mov r8d, 0x60
mov rcx, rsi
xor edx, edx
mov r9, r15
call rbx
mov r8d, 0x70
mov rcx, rsi
xor edx, edx
mov r9, r12
call rbx
mov rcx, rsi
mov edx, 0x800
xor r8d, r8d
xor r9d, r9d
call rbx
mov rcx, qword [0x140129f28]
mov edx, 0x7a
call fcn.140040d20
xor edx, edx
cmp eax, 1
sete dl
mov r8d, 0x180
mov rcx, rsi
mov r9, r14
call rbx
mov rcx, rsi
mov edx, 0x800
xor r8d, r8d
xor r9d, r9d
call rbx
call fcn.14000d2b0
test al, al
je 0x140005bc0
mov r8d, 0x140
mov rcx, rsi
xor edx, edx
lea r9, [0x1401068ac]
call rbx
jmp 0x140005bc0
call fcn.140046ea0
test al, al
je 0x140005d62
mov rax, qword [0x140129018]
lea rcx, [0x140129018]
lea rdx, str.Running_with_restricted_process_ACL
call qword [rax]
mov rcx, qword [0x140129008]
call fcn.14002c1e0
call fcn.1400069c0
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, ax
lea rdi, [rsp + 0x80]
mov edx, 0x1004
mov r8, rdi
mov r9d, 0x14
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov rcx, rdi
call fcn.1400cae44
mov dword [0x14012b2bc], eax
mov rcx, qword [0x140129008]
mov edx, dword [rsp + 0x6c]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140129008]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x140129008]
sete dl
mov rcx, qword [0x14012aa88]
call fcn.140019ae0
mov rcx, qword [0x140129008]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov r8, qword [0x14012aaf0]
mov rcx, qword [0x140129008]
lea rdx, [0x140129010]
call fcn.14000d010
mov r14, qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov rbp, qword [sym.imp.USER32.dll_PeekMessageW]
mov r15, qword [sym.imp.USER32.dll_IsWindow]
mov r12, qword [sym.imp.USER32.dll_DispatchMessageW]
mov r13, qword [sym.imp.USER32.dll_IsDialogMessageA]
jmp 0x140005e33
call fcn.14002c4c0
call fcn.14002c520
mov esi, 0
test al, al
jne 0x140005e81
mov dword [rsp + 0x20], 0
xor esi, esi
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x140005e81
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x140129008]
sete dl
mov rcx, qword [0x14012aa88]
call fcn.140019ae0
mov esi, 0xffffffff
call fcn.14002c9d0
mov rbx, rax
mov ecx, dword [rax + 0x200]
mov dword [rsp + 0x20], 0x1cff
mov rdx, rax
xor r8d, r8d
mov r9d, esi
call r14
cmp eax, dword [rbx + 0x200]
jae 0x140005eb5
mov rcx, rbx
mov edx, eax
call fcn.14002caa0
mov rcx, rbx
call fcn.14002cb10
jmp 0x140005ed7
mov rcx, rdi
call r12
cmp dword [rsp + 0x88], 0x8005
jne 0x140005e2e
mov dword [rsp + 0x20], 1
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call rbp
test eax, eax
je 0x140005e2e
cmp dword [rsp + 0x88], 0x12
je 0x140005f1f
call fcn.1400221e0
mov rsi, rax
mov rcx, rax
call r15
test eax, eax
je 0x140005ec0
mov rcx, rsi
mov rdx, rdi
call r13
test eax, eax
jne 0x140005ec6
jmp 0x140005ec0
mov ecx, dword [rsp + 0x90]
call fcn.140006bd0
int3