Function at 0x1400050e0
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 [0x140102058]
xor rax, rsp
mov qword [rsp + 0xb8], rax
call fcn.140043c60
mov qword [0x140102db8], r12
mov qword [0x140102db0], rsi
call fcn.14003c490
call fcn.140024770
call fcn.14002a300
call fcn.1400228d0
call fcn.140044f50
cmp dword [0x140105e40], 4
jb 0x140005159
jne 0x14000516c
cmp dword [0x140105e48], 2
je 0x14000516c
lea rcx, str.MSWHEEL_ROLLMSG
call qword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [section..data], eax
call fcn.14000d130
lea rcx, str.user32.dll
call fcn.140043cd0
mov rsi, rax
lea rcx, str.winmm.dll
call fcn.140043cd0
mov rdi, rax
lea rcx, str.shcore.dll
call fcn.140043cd0
mov rbp, rax
test rsi, rsi
je 0x1400051cb
lea rdx, str.FlashWindowEx
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call rbx
mov qword [0x1401040d8], rax
lea rdx, str.ToUnicodeEx
mov rcx, rsi
call rbx
jmp 0x1400051d8
mov qword [0x1401040d8], 0
xor eax, eax
mov qword [0x1401041e8], rax
test rdi, rdi
je 0x1400051f6
lea rdx, str.PlaySoundA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x1400051f8
xor eax, eax
mov qword [0x1401040c8], rax
test rsi, rsi
je 0x14000523f
lea rdx, str.GetMonitorInfoA
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call rdi
mov qword [0x140104188], rax
lea rdx, str.MonitorFromPoint
mov rcx, rsi
call rdi
mov qword [0x140104190], rax
lea rdx, str.MonitorFromWindow
mov rcx, rsi
call rdi
jmp 0x140005257
mov qword [0x140104188], 0
mov qword [0x140104190], 0
xor eax, eax
mov qword [0x140104130], rax
test rbp, rbp
je 0x140005275
lea rdx, str.GetDpiForMonitor
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140005277
xor eax, eax
mov qword [0x140104128], rax
test rsi, rsi
je 0x1400052ab
lea rdx, str.GetSystemMetricsForDpi
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call rdi
mov qword [0x140104100], rax
lea rdx, str.AdjustWindowRectExForDpi
mov rcx, rsi
call rdi
jmp 0x1400052b8
mov qword [0x140104100], 0
xor eax, eax
mov qword [0x140104108], rax
call fcn.14003f250
mov qword [0x140102dc8], rax
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
cmp eax, 1
jbe 0x14000533f
mov rdx, qword [0x1400c9210]
lea rcx, str._s_Fatal_Error
call fcn.140040ac0
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.140041750
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400a5f20
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 [0x140102dc8]
mov rdx, r14
call fcn.14000cba0
lea rcx, [0x140102dd0]
mov r8d, 0xb18
xor edx, edx
call fcn.1400a7760
mov rcx, qword [0x140102dc8]
mov edx, 0x6d
call fcn.14003f590
mov dword [0x140103a00], eax
mov rcx, qword [0x140102dc8]
mov edx, 0xa4
call fcn.14003f590
mov dword [0x140103a04], eax
mov dword [0x1401038e8], 0xa
mov dword [0x1401038ec], 0x14
mov dword [0x1401038f0], 0x19
mov dword [0x1401038f4], 0x1c
mov rcx, qword [0x140102dc8]
mov edx, 0x7c
call fcn.14003f590
lea eax, [rax + rax*4]
lea edi, [rax + rax]
add edi, 0x19
mov ebx, dword [0x1401038f4]
mov ebp, dword [0x1401038ec]
mov rcx, qword [0x140102dc8]
mov edx, 0x7d
call fcn.14003f590
mov esi, eax
imul esi, ebp
add esi, ebx
cmp qword [0x140104188], 0
je 0x14000544a
mov rax, qword [0x140104130]
test rax, rax
je 0x14000544a
mov rcx, qword [0x140102008]
mov edx, 2
call rax
mov dword [rsp + 0x80], 0x28
lea rdx, [rsp + 0x80]
mov rcx, rax
call qword [0x140104188]
movups xmm0, xmmword [rsp + 0x84]
movaps xmmword [rsp + 0x70], xmm0
jmp 0x14000545e
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 [0x1400c9218]
call fcn.140034fa0
test rax, rax
jne 0x140005490
xor edi, edi
jmp 0x14000549b
mov dil, byte [rax + 0xa8]
and dil, 1
mov rsi, qword [0x1400c9210]
xor ecx, ecx
xor edx, edx
mov r8, rsi
call fcn.140040b30
mov r14, rax
xor ecx, ecx
xor edx, edx
mov r8, rsi
call fcn.140040b30
mov qword [0x1401038f8], rax
xor ecx, ecx
xor edx, edx
mov r8, rsi
call fcn.140040b30
mov qword [0x140103900], rax
mov rcx, qword [0x140102dc8]
mov edx, 0x76
call fcn.14003f4d0
movzx esi, al
shl esi, 0x15
or esi, 0xcf0000
mov rcx, qword [0x140102dc8]
mov edx, pe_nt_image_headers64
call fcn.14003f590
mov ecx, esi
and ecx, 0xea0000
test dil, dil
cmovne esi, ecx
cmp eax, 1
cmove esi, ecx
mov rcx, qword [0x140102dc8]
mov edx, 0x5f
call fcn.14003f4d0
movzx edi, al
lea ebx, [rdi*8]
mov rcx, qword [0x140102dc8]
mov edx, 0x88
call fcn.14003f4d0
lea edi, [rdi*8 + 0x200]
test al, al
cmove edi, ebx
mov byte [0x140103908], 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 [0x140102008], rax
test rax, rax
jne 0x1400055c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140045070
lea rcx, str.Unable_to_create_terminal_window:__s
mov rdx, rax
call fcn.140005f70
movups xmmword [0x14010390c], xmm6
mov qword [0x14010391c], 0
cmp qword [0x140104128], 0
je 0x140005640
mov rbp, qword [0x140104130]
test rbp, rbp
je 0x140005640
mov rcx, rax
mov edx, 1
call rbp
lea r8, [rsp + 0x80]
lea r9, [rsp + 0x70]
mov rcx, rax
xor edx, edx
call qword [0x140104128]
test eax, eax
jne 0x14000562c
mov ecx, dword [rsp + 0x80]
mov dword [0x14010390c], ecx
mov eax, dword [rsp + 0x70]
mov dword [0x140103910], eax
jmp 0x140005638
mov ecx, dword [0x14010390c]
mov eax, dword [0x140103910]
test ecx, ecx
je 0x140005640
test eax, eax
jne 0x140005687
mov rcx, qword [0x140102008]
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 [0x14010390c], eax
mov rcx, rsi
mov edx, 0x5a
call rdi
mov dword [0x140103910], eax
mov rcx, qword [0x140102008]
mov rdx, rsi
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, r14
call fcn.140041750
xor esi, esi
xor ecx, ecx
xor edx, edx
call fcn.140005ff0
mov qword [0x1401039a0], 0
mov ecx, 1
mov edx, 8
mov r8d, 0x414
call fcn.1400416b0
mov qword [0x140103998], 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 0x1400056d0
lea rax, [0x1400c9008]
mov qword [0x140103928], rax
lea r8, [0x140103928]
mov rcx, qword [0x140102dc8]
lea rdx, [0x140102dd0]
call fcn.140010970
mov rsi, rax
mov qword [0x140103930], rax
mov rdi, qword [0x140102dc8]
cmp dword [rax + 0x11d0], 1
je 0x140005742
lea rcx, str.term__mouse_select_clipboards_0___CLIP_LOCAL
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_windows_window.c
mov r8d, 0x3d6
call fcn.1400b215c
mov dword [rsi + 0x11dc], 1
mov rcx, rdi
mov edx, 0x9d
call fcn.14003f4d0
test al, al
je 0x140005778
movsxd rax, dword [rsi + 0x11dc]
lea ecx, [rax + 1]
mov dword [rsi + 0x11dc], ecx
mov dword [rsi + rax*4 + 0x11d0], 2
mov rcx, rdi
mov edx, 0x9e
call fcn.14003f590
xor ecx, ecx
cmp eax, 2
sete cl
add ecx, ecx
cmp eax, 1
cmove ecx, eax
mov dword [rsi + 0x11e0], ecx
mov rdx, qword [0x140102dc8]
lea rcx, [0x140102018]
call fcn.14002b8e0
mov qword [0x140103938], rax
mov rcx, qword [0x140103930]
mov rdx, rax
call fcn.14001a360
mov rcx, qword [0x140102dc8]
mov edx, 0x69
call fcn.14003f590
mov esi, eax
mov rcx, qword [0x140102dc8]
mov edx, 0x7c
call fcn.14003f590
mov edi, eax
mov rcx, qword [0x140102dc8]
mov edx, 0x7d
call fcn.14003f590
mov rcx, qword [0x140103930]
mov edx, eax
mov r8d, edi
mov r9d, esi
call fcn.140011480
mov rcx, qword [0x140102008]
lea rdx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rcx, qword [0x140102008]
lea rdx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [0x140102dc8]
mov edx, 0x89
call fcn.14003f590
mov dword [0x140103940], eax
mov dword [0x140103944], 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 [0x1401038f0], ecx
mov dword [0x1401038f4], eax
mov rdx, qword [0x140103930]
mov ebp, dword [rdx + 0x174]
mov edx, dword [rdx + 0x178]
imul edx, dword [0x1401038e8]
add edx, ecx
imul ebp, dword [0x1401038ec]
add ebp, eax
mov rcx, qword [0x140102008]
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 [0x1401038e8]
lea ecx, [rax + 0xf]
add eax, 0x1e
test ecx, ecx
cmovns eax, ecx
sar eax, 4
imul eax, dword [0x1401038ec]
add eax, eax
movsxd rsi, eax
mov edx, 1
mov rcx, rsi
xor r8d, r8d
call fcn.1400416b0
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.1400a7760
mov edx, dword [0x1401038ec]
mov ecx, dword [0x1401038e8]
mov qword [rsp + 0x20], rdi
mov r8d, 1
mov r9d, 1
call qword [sym.imp.GDI32.dll_CreateBitmap]
mov qword [0x140103948], rax
mov rcx, rdi
call fcn.140041750
mov r9d, dword [0x1401038ec]
mov r8d, dword [0x1401038e8]
mov rdx, qword [0x140103948]
mov rcx, qword [0x140102008]
call qword [sym.imp.USER32.dll_CreateCaret]
movabs rax, 0x1f0000001c
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], 0
mov rax, qword [0x140103930]
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 [0x140102008]
lea r8, [rsp + 0x80]
mov edx, 1
xor r9d, r9d
call qword [sym.imp.USER32.dll_SetScrollInfo]
mov dword [0x140103950], 0
mov dword [0x140103954], 0
call qword [sym.imp.USER32.dll_GetDoubleClickTime]
mov dword [0x140103958], eax
mov rcx, qword [0x140102008]
xor edx, edx
call qword [sym.imp.USER32.dll_GetSystemMenu]
mov qword [0x140103960], rax
call qword [sym.imp.USER32.dll_CreatePopupMenu]
mov qword [0x140103968], rax
lea r9, [0x1400e0ef1]
mov rbx, qword [sym.imp.USER32.dll_AppendMenuA]
mov r8d, 0x190
mov rcx, rax
xor edx, edx
call rbx
mov rcx, qword [0x140103968]
lea r9, str.Paste
mov r8d, 0x1a0
xor edx, edx
call rbx
call qword [sym.imp.USER32.dll_CreateMenu]
mov qword [0x140103970], rax
lea rcx, [0x140103978]
mov dl, 1
call fcn.14003a820
mov rsi, qword [sym.imp.USER32.dll_DeleteMenu]
nop dword [rax]
mov rcx, qword [0x140103970]
xor edx, edx
mov r8d, 0x400
call rsi
test eax, eax
jne 0x140005a70
cmp dword [0x140103978], 2
jl 0x140005ae1
mov edi, 1
mov esi, 0x1000
nop dword [rax + rax]
mov rax, qword [0x140103980]
mov r9, qword [rax + rdi*8]
mov rcx, qword [0x140103970]
xor edx, edx
mov r8, rsi
call rbx
add rdi, 1
mov eax, dword [0x140103978]
cmp eax, 0x401
mov ecx, 0x401
cmovl ecx, eax
movsxd rcx, ecx
add rsi, 0x10
cmp rdi, rcx
jl 0x140005aa0
cmp eax, 1
jg 0x140005b00
mov rcx, qword [0x140103970]
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 0x140005b6e
mov rcx, r13
mov rdx, qword [0x1400c9210]
call fcn.140040ac0
mov rbp, rax
mov r8d, 0x150
mov rcx, rsi
xor edx, edx
mov r9, rax
call rbx
mov rcx, rbp
call fcn.140041750
mov eax, 1
test dil, 1
mov edi, 0
je 0x140005cb2
lea rcx, [0x140103960]
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 [0x140103970]
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 [0x140102dc8]
mov edx, pe_nt_image_headers64
call fcn.14003f590
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.14000d2e0
test al, al
je 0x140005b30
mov r8d, 0x140
mov rcx, rsi
xor edx, edx
lea r9, [0x1400e4eb5]
call rbx
jmp 0x140005b30
call fcn.140044a80
test al, al
je 0x140005cd2
mov rax, qword [0x140102018]
lea rcx, [0x140102018]
lea rdx, str.Running_with_restricted_process_ACL
call qword [rax]
mov rcx, qword [0x140102008]
call fcn.14002ba80
call fcn.140006930
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.1400b3304
mov dword [0x140104174], eax
mov rcx, qword [0x140102008]
mov edx, dword [rsp + 0x6c]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140102008]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x140102008]
sete dl
mov rcx, qword [0x140103930]
call fcn.14001a370
mov rcx, qword [0x140102008]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov r8, qword [0x140103990]
mov rcx, qword [0x140102008]
lea rdx, [0x140102010]
call fcn.14000d070
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 0x140005da3
call fcn.14002bcf0
call fcn.14002bd50
mov esi, 0
test al, al
jne 0x140005df1
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 0x140005df1
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x140102008]
sete dl
mov rcx, qword [0x140103930]
call fcn.14001a370
mov esi, 0xffffffff
call fcn.14002c200
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 0x140005e25
mov rcx, rbx
mov edx, eax
call fcn.14002c2e0
mov rcx, rbx
call fcn.14002c350
jmp 0x140005e47
mov rcx, rdi
call r12
cmp dword [rsp + 0x88], 0x8005
jne 0x140005d9e
mov dword [rsp + 0x20], 1
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call rbp
test eax, eax
je 0x140005d9e
cmp dword [rsp + 0x88], 0x12
je 0x140005e8f
call fcn.1400226d0
mov rsi, rax
mov rcx, rax
call r15
test eax, eax
je 0x140005e30
mov rcx, rsi
mov rdx, rdi
call r13
test eax, eax
jne 0x140005e36
jmp 0x140005e30
mov ecx, dword [rsp + 0x90]
call fcn.140006b20
int3