Function at 0x140005170
Capabilities:
Get geographical location
Get keyboard layout
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 [0x14012a050]
xor rax, rsp
mov qword [rsp + 0xb8], rax
call fcn.140046250
mov qword [0x14012af18], r12
mov qword [0x14012af10], rsi
call fcn.14003e2c0
call fcn.1400250b0
call fcn.14002b080
call fcn.1400229f0
call fcn.1400479b0
cmp dword [0x14012de30], 4
jb 0x1400051e9
jne 0x1400051fc
cmp dword [0x14012de38], 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.1400462c0
mov rsi, rax
lea rcx, str.winmm.dll
call fcn.1400462c0
mov rdi, rax
lea rcx, str.shcore.dll
call fcn.1400462c0
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 [0x14012c238], rax
lea rdx, str.ToUnicodeEx
mov rcx, rsi
call rbx
jmp 0x140005268
mov qword [0x14012c238], 0
xor eax, eax
mov qword [0x14012c330], 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 [0x14012c228], 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 [0x14012c2d0], rax
lea rdx, str.MonitorFromPoint
mov rcx, rsi
call rdi
mov qword [0x14012c2d8], rax
lea rdx, str.MonitorFromWindow
mov rcx, rsi
call rdi
jmp 0x1400052e7
mov qword [0x14012c2d0], 0
mov qword [0x14012c2d8], 0
xor eax, eax
mov qword [0x14012c278], 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 [0x14012c270], 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 [0x14012c248], rax
lea rdx, str.AdjustWindowRectExForDpi
mov rcx, rsi
call rdi
jmp 0x140005348
mov qword [0x14012c248], 0
xor eax, eax
mov qword [0x14012c250], rax
call fcn.140041020
mov qword [0x14012af28], rax
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
cmp eax, 1
jbe 0x1400053cf
mov rdx, qword [0x1400e9210]
lea rcx, str._s_Fatal_Error
call fcn.140042890
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.140043590
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400ba340
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 [0x14012af28]
mov rdx, r14
call fcn.14000cad0
lea rcx, [0x14012af30]
mov r8d, 0xb0c
xor edx, edx
call fcn.1400bbc60
mov rcx, qword [0x14012af28]
mov edx, 0x6f
call fcn.140041360
mov dword [0x14012bb60], eax
mov rcx, qword [0x14012af28]
mov edx, 0xa6
call fcn.140041360
mov dword [0x14012bb64], eax
mov dword [0x14012ba3c], 0xa
mov dword [0x14012ba40], 0x14
mov dword [0x14012ba44], 0x19
mov dword [0x14012ba48], 0x1c
mov rcx, qword [0x14012af28]
mov edx, 0x7e
call fcn.140041360
lea eax, [rax + rax*4]
lea edi, [rax + rax]
add edi, 0x19
mov ebx, dword [0x14012ba48]
mov ebp, dword [0x14012ba40]
mov rcx, qword [0x14012af28]
mov edx, 0x7f
call fcn.140041360
mov esi, eax
imul esi, ebp
add esi, ebx
cmp qword [0x14012c2d0], 0
je 0x1400054da
mov rax, qword [0x14012c278]
test rax, rax
je 0x1400054da
mov rcx, qword [0x14012a008]
mov edx, 2
call rax
mov dword [rsp + 0x80], 0x28
lea rdx, [rsp + 0x80]
mov rcx, rax
call qword [0x14012c2d0]
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 [0x1400e9218]
call fcn.140036f20
test rax, rax
jne 0x140005520
xor edi, edi
jmp 0x14000552b
mov dil, byte [rax + 0xa8]
and dil, 1
mov rsi, qword [0x1400e9210]
xor ecx, ecx
xor edx, edx
mov r8, rsi
call fcn.140042900
mov r14, rax
xor ecx, ecx
xor edx, edx
mov r8, rsi
call fcn.140042900
mov qword [0x14012ba50], rax
xor ecx, ecx
xor edx, edx
mov r8, rsi
call fcn.140042900
mov qword [0x14012ba58], rax
mov rcx, qword [0x14012af28]
mov edx, pe_nt_image_headers64
call fcn.1400412a0
movzx esi, al
shl esi, 0x15
or esi, 0xcf0000
mov rcx, qword [0x14012af28]
mov edx, 0x7a
call fcn.140041360
mov ecx, esi
and ecx, 0xea0000
test dil, dil
cmovne esi, ecx
cmp eax, 1
cmove esi, ecx
mov rcx, qword [0x14012af28]
mov edx, 0x61
call fcn.1400412a0
movzx edi, al
lea ebx, [rdi*8]
mov rcx, qword [0x14012af28]
mov edx, 0x8a
call fcn.1400412a0
lea edi, [rdi*8 + 0x200]
test al, al
cmove edi, ebx
mov byte [0x14012ba60], 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 [0x14012a008], rax
test rax, rax
jne 0x140005655
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140047ad0
lea rcx, str.Unable_to_create_terminal_window:__s
mov rdx, rax
call fcn.140006000
movups xmmword [0x14012ba64], xmm6
mov qword [0x14012ba74], 0
cmp qword [0x14012c270], 0
je 0x1400056d0
mov rbp, qword [0x14012c278]
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 [0x14012c270]
test eax, eax
jne 0x1400056bc
mov ecx, dword [rsp + 0x80]
mov dword [0x14012ba64], ecx
mov eax, dword [rsp + 0x70]
mov dword [0x14012ba68], eax
jmp 0x1400056c8
mov ecx, dword [0x14012ba64]
mov eax, dword [0x14012ba68]
test ecx, ecx
je 0x1400056d0
test eax, eax
jne 0x140005717
mov rcx, qword [0x14012a008]
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 [0x14012ba64], eax
mov rcx, rsi
mov edx, 0x5a
call rdi
mov dword [0x14012ba68], eax
mov rcx, qword [0x14012a008]
mov rdx, rsi
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, r14
call fcn.140043590
xor esi, esi
xor ecx, ecx
xor edx, edx
call fcn.140006080
mov qword [0x14012bb00], 0
mov ecx, 1
mov edx, 8
mov r8d, 0x414
call fcn.1400434f0
mov qword [0x14012baf8], 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, [0x1400e9008]
mov qword [0x14012ba80], rax
lea r8, [0x14012ba80]
mov rcx, qword [0x14012af28]
lea rdx, [0x14012af30]
call fcn.140010820
mov rsi, rax
mov qword [0x14012ba88], rax
mov rdi, qword [0x14012af28]
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_u160jzna_putty_windows_window.c
mov r8d, 0x3dc
call fcn.1400cb1fc
mov dword [rsi + 0x11e4], 1
mov rcx, rdi
mov edx, 0x9f
call fcn.1400412a0
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.140041360
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 [0x14012af28]
lea rcx, [0x14012a018]
call fcn.14002c600
mov qword [0x14012ba90], rax
mov rcx, qword [0x14012ba88]
mov rdx, rax
call fcn.140019b50
mov rcx, qword [0x14012af28]
mov edx, 0x6b
call fcn.140041360
mov esi, eax
mov rcx, qword [0x14012af28]
mov edx, 0x7e
call fcn.140041360
mov edi, eax
mov rcx, qword [0x14012af28]
mov edx, 0x7f
call fcn.140041360
mov rcx, qword [0x14012ba88]
mov edx, eax
mov r8d, edi
mov r9d, esi
call fcn.140011330
mov rcx, qword [0x14012a008]
lea rdx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rcx, qword [0x14012a008]
lea rdx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [0x14012af28]
mov edx, 0x8b
call fcn.140041360
mov dword [0x14012ba98], eax
mov dword [0x14012ba9c], 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 [0x14012ba44], ecx
mov dword [0x14012ba48], eax
mov rdx, qword [0x14012ba88]
mov ebp, dword [rdx + 0x174]
mov edx, dword [rdx + 0x178]
imul edx, dword [0x14012ba3c]
add edx, ecx
imul ebp, dword [0x14012ba40]
add ebp, eax
mov rcx, qword [0x14012a008]
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 [0x14012ba3c]
lea ecx, [rax + 0xf]
add eax, 0x1e
test ecx, ecx
cmovns eax, ecx
sar eax, 4
imul eax, dword [0x14012ba40]
add eax, eax
movsxd rsi, eax
mov edx, 1
mov rcx, rsi
xor r8d, r8d
call fcn.1400434f0
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.1400bbc60
mov edx, dword [0x14012ba40]
mov ecx, dword [0x14012ba3c]
mov qword [rsp + 0x20], rdi
mov r8d, 1
mov r9d, 1
call qword [sym.imp.GDI32.dll_CreateBitmap]
mov qword [0x14012baa0], rax
mov rcx, rdi
call fcn.140043590
mov r9d, dword [0x14012ba40]
mov r8d, dword [0x14012ba3c]
mov rdx, qword [0x14012baa0]
mov rcx, qword [0x14012a008]
call qword [sym.imp.USER32.dll_CreateCaret]
movabs rax, 0x1f0000001c
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], 0
mov rax, qword [0x14012ba88]
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 [0x14012a008]
lea r8, [rsp + 0x80]
mov edx, 1
xor r9d, r9d
call qword [sym.imp.USER32.dll_SetScrollInfo]
mov dword [0x14012baa8], 0
mov dword [0x14012baac], 0
call qword [sym.imp.USER32.dll_GetDoubleClickTime]
mov dword [0x14012bab0], eax
mov rcx, qword [0x14012a008]
xor edx, edx
call qword [sym.imp.USER32.dll_GetSystemMenu]
mov qword [0x14012bac0], rax
call qword [sym.imp.USER32.dll_CreatePopupMenu]
mov qword [0x14012bac8], rax
lea r9, [0x140103240]
mov rbx, qword [sym.imp.USER32.dll_AppendMenuA]
mov r8d, 0x190
mov rcx, rax
xor edx, edx
call rbx
mov rcx, qword [0x14012bac8]
lea r9, str.Paste
mov r8d, 0x1a0
xor edx, edx
call rbx
call qword [sym.imp.USER32.dll_CreateMenu]
mov qword [0x14012bad0], rax
lea rcx, [0x14012bad8]
mov dl, 1
call fcn.14003c930
mov rsi, qword [sym.imp.USER32.dll_DeleteMenu]
nop dword [rax]
mov rcx, qword [0x14012bad0]
xor edx, edx
mov r8d, 0x400
call rsi
test eax, eax
jne 0x140005b00
cmp dword [0x14012bad8], 2
jl 0x140005b71
mov edi, 1
mov esi, 0x1000
nop dword [rax + rax]
mov rax, qword [0x14012bae0]
mov r9, qword [rax + rdi*8]
mov rcx, qword [0x14012bad0]
xor edx, edx
mov r8, rsi
call rbx
add rdi, 1
mov eax, dword [0x14012bad8]
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 [0x14012bad0]
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 [0x1400e9210]
call fcn.140042890
mov rbp, rax
mov r8d, 0x150
mov rcx, rsi
xor edx, edx
mov r9, rax
call rbx
mov rcx, rbp
call fcn.140043590
mov eax, 1
test dil, 1
mov edi, 0
je 0x140005d42
lea rcx, [0x14012bac0]
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 [0x14012bad0]
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 [0x14012af28]
mov edx, 0x7a
call fcn.140041360
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, [0x1401077b0]
call rbx
jmp 0x140005bc0
call fcn.1400474f0
test al, al
je 0x140005d62
mov rax, qword [0x14012a018]
lea rcx, [0x14012a018]
lea rdx, str.Running_with_restricted_process_ACL
call qword [rax]
mov rcx, qword [0x14012a008]
call fcn.14002c7a0
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.1400cc4c4
mov dword [0x14012c2bc], eax
mov rcx, qword [0x14012a008]
mov edx, dword [rsp + 0x6c]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14012a008]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x14012a008]
sete dl
mov rcx, qword [0x14012ba88]
call fcn.140019b60
mov rcx, qword [0x14012a008]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov r8, qword [0x14012baf0]
mov rcx, qword [0x14012a008]
lea rdx, [0x14012a010]
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.14002ca80
call fcn.14002cae0
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 [0x14012a008]
sete dl
mov rcx, qword [0x14012ba88]
call fcn.140019b60
mov esi, 0xffffffff
call fcn.14002cf90
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.14002d060
mov rcx, rbx
call fcn.14002d0d0
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.1400227f0
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