Function at 0x1400050c0
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 [0x140127050]
xor rax, rsp
mov qword [rsp + 0xb8], rax
call fcn.140045980
mov qword [0x140127f18], r12
mov qword [0x140127f10], rsi
call fcn.14003d9f0
call fcn.140024910
call fcn.14002a8e0
call fcn.140022200
call fcn.1400470e0
cmp dword [0x14012ae30], 4
jb 0x140005139
jne 0x14000514c
cmp dword [0x14012ae38], 2
je 0x14000514c
lea rcx, str.MSWHEEL_ROLLMSG
call qword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [section..data], eax
call fcn.14000d080
lea rcx, str.user32.dll
call fcn.1400459f0
mov rsi, rax
lea rcx, str.winmm.dll
call fcn.1400459f0
mov rdi, rax
lea rcx, str.shcore.dll
call fcn.1400459f0
mov rbp, rax
test rsi, rsi
je 0x1400051ab
lea rdx, str.FlashWindowEx
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call rbx
mov qword [0x140129238], rax
lea rdx, str.ToUnicodeEx
mov rcx, rsi
call rbx
jmp 0x1400051b8
mov qword [0x140129238], 0
xor eax, eax
mov qword [0x140129330], rax
test rdi, rdi
je 0x1400051d6
lea rdx, str.PlaySoundA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x1400051d8
xor eax, eax
mov qword [0x140129228], rax
test rsi, rsi
je 0x14000521f
lea rdx, str.GetMonitorInfoA
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call rdi
mov qword [0x1401292d0], rax
lea rdx, str.MonitorFromPoint
mov rcx, rsi
call rdi
mov qword [0x1401292d8], rax
lea rdx, str.MonitorFromWindow
mov rcx, rsi
call rdi
jmp 0x140005237
mov qword [0x1401292d0], 0
mov qword [0x1401292d8], 0
xor eax, eax
mov qword [0x140129278], rax
test rbp, rbp
je 0x140005255
lea rdx, str.GetDpiForMonitor
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140005257
xor eax, eax
mov qword [0x140129270], rax
test rsi, rsi
je 0x14000528b
lea rdx, str.GetSystemMetricsForDpi
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call rdi
mov qword [0x140129248], rax
lea rdx, str.AdjustWindowRectExForDpi
mov rcx, rsi
call rdi
jmp 0x140005298
mov qword [0x140129248], 0
xor eax, eax
mov qword [0x140129250], rax
call fcn.140040750
mov qword [0x140127f28], rax
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
cmp eax, 1
jbe 0x14000531f
mov rdx, qword [0x1400e7210]
lea rcx, str._s_Fatal_Error
call fcn.140041fc0
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.140042cc0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400b8300
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 [0x140127f28]
mov rdx, r14
call fcn.14000ca50
lea rcx, [0x140127f30]
mov r8d, 0xb0c
xor edx, edx
call fcn.1400b9c20
mov rcx, qword [0x140127f28]
mov edx, 0x6f
call fcn.140040a90
mov dword [0x140128b60], eax
mov rcx, qword [0x140127f28]
mov edx, 0xa6
call fcn.140040a90
mov dword [0x140128b64], eax
mov dword [0x140128a3c], 0xa
mov dword [0x140128a40], 0x14
mov dword [0x140128a44], 0x19
mov dword [0x140128a48], 0x1c
mov rcx, qword [0x140127f28]
mov edx, 0x7e
call fcn.140040a90
lea eax, [rax + rax*4]
lea edi, [rax + rax]
add edi, 0x19
mov ebx, dword [0x140128a48]
mov ebp, dword [0x140128a40]
mov rcx, qword [0x140127f28]
mov edx, 0x7f
call fcn.140040a90
mov esi, eax
imul esi, ebp
add esi, ebx
cmp qword [0x1401292d0], 0
je 0x14000542a
mov rax, qword [0x140129278]
test rax, rax
je 0x14000542a
mov rcx, qword [0x140127008]
mov edx, 2
call rax
mov dword [rsp + 0x80], 0x28
lea rdx, [rsp + 0x80]
mov rcx, rax
call qword [0x1401292d0]
movups xmm0, xmmword [rsp + 0x84]
movaps xmmword [rsp + 0x70], xmm0
jmp 0x14000543e
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 [0x1400e7218]
call fcn.140036720
test rax, rax
jne 0x140005470
xor edi, edi
jmp 0x14000547b
mov dil, byte [rax + 0xa8]
and dil, 1
mov rsi, qword [0x1400e7210]
xor ecx, ecx
xor edx, edx
mov r8, rsi
call fcn.140042030
mov r14, rax
xor ecx, ecx
xor edx, edx
mov r8, rsi
call fcn.140042030
mov qword [0x140128a50], rax
xor ecx, ecx
xor edx, edx
mov r8, rsi
call fcn.140042030
mov qword [0x140128a58], rax
mov rcx, qword [0x140127f28]
mov edx, pe_nt_image_headers64
call fcn.1400409d0
movzx esi, al
shl esi, 0x15
or esi, 0xcf0000
mov rcx, qword [0x140127f28]
mov edx, 0x7a
call fcn.140040a90
mov ecx, esi
and ecx, 0xea0000
test dil, dil
cmovne esi, ecx
cmp eax, 1
cmove esi, ecx
mov rcx, qword [0x140127f28]
mov edx, 0x61
call fcn.1400409d0
movzx edi, al
lea ebx, [rdi*8]
mov rcx, qword [0x140127f28]
mov edx, 0x8a
call fcn.1400409d0
lea edi, [rdi*8 + 0x200]
test al, al
cmove edi, ebx
mov byte [0x140128a60], 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 [0x140127008], rax
test rax, rax
jne 0x1400055a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140047200
lea rcx, str.Unable_to_create_terminal_window:__s
mov rdx, rax
call fcn.140005f50
movups xmmword [0x140128a64], xmm6
mov qword [0x140128a74], 0
cmp qword [0x140129270], 0
je 0x140005620
mov rbp, qword [0x140129278]
test rbp, rbp
je 0x140005620
mov rcx, rax
mov edx, 1
call rbp
lea r8, [rsp + 0x80]
lea r9, [rsp + 0x70]
mov rcx, rax
xor edx, edx
call qword [0x140129270]
test eax, eax
jne 0x14000560c
mov ecx, dword [rsp + 0x80]
mov dword [0x140128a64], ecx
mov eax, dword [rsp + 0x70]
mov dword [0x140128a68], eax
jmp 0x140005618
mov ecx, dword [0x140128a64]
mov eax, dword [0x140128a68]
test ecx, ecx
je 0x140005620
test eax, eax
jne 0x140005667
mov rcx, qword [0x140127008]
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 [0x140128a64], eax
mov rcx, rsi
mov edx, 0x5a
call rdi
mov dword [0x140128a68], eax
mov rcx, qword [0x140127008]
mov rdx, rsi
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, r14
call fcn.140042cc0
xor esi, esi
xor ecx, ecx
xor edx, edx
call fcn.140005fd0
mov qword [0x140128b00], 0
mov ecx, 1
mov edx, 8
mov r8d, 0x414
call fcn.140042c20
mov qword [0x140128af8], 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 0x1400056b0
lea rax, [0x1400e7008]
mov qword [0x140128a80], rax
lea r8, [0x140128a80]
mov rcx, qword [0x140127f28]
lea rdx, [0x140127f30]
call fcn.140010740
mov rsi, rax
mov qword [0x140128a88], rax
mov rdi, qword [0x140127f28]
cmp dword [rax + 0x11d0], 1
je 0x140005722
lea rcx, str.term__mouse_select_clipboards_0___CLIP_LOCAL
lea rdx, str._home_simon_mem_.build_workdirs_bob_jmc5owxa_putty_windows_window.c
mov r8d, 0x3d9
call fcn.1400c91bc
mov dword [rsi + 0x11dc], 1
mov rcx, rdi
mov edx, 0x9f
call fcn.1400409d0
test al, al
je 0x140005758
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, 0xa0
call fcn.140040a90
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 [0x140127f28]
lea rcx, [0x140127018]
call fcn.14002be60
mov qword [0x140128a90], rax
mov rcx, qword [0x140128a88]
mov rdx, rax
call fcn.140019c30
mov rcx, qword [0x140127f28]
mov edx, 0x6b
call fcn.140040a90
mov esi, eax
mov rcx, qword [0x140127f28]
mov edx, 0x7e
call fcn.140040a90
mov edi, eax
mov rcx, qword [0x140127f28]
mov edx, 0x7f
call fcn.140040a90
mov rcx, qword [0x140128a88]
mov edx, eax
mov r8d, edi
mov r9d, esi
call fcn.140011250
mov rcx, qword [0x140127008]
lea rdx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rcx, qword [0x140127008]
lea rdx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [0x140127f28]
mov edx, 0x8b
call fcn.140040a90
mov dword [0x140128a98], eax
mov dword [0x140128a9c], 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 [0x140128a44], ecx
mov dword [0x140128a48], eax
mov rdx, qword [0x140128a88]
mov ebp, dword [rdx + 0x174]
mov edx, dword [rdx + 0x178]
imul edx, dword [0x140128a3c]
add edx, ecx
imul ebp, dword [0x140128a40]
add ebp, eax
mov rcx, qword [0x140127008]
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 [0x140128a3c]
lea ecx, [rax + 0xf]
add eax, 0x1e
test ecx, ecx
cmovns eax, ecx
sar eax, 4
imul eax, dword [0x140128a40]
add eax, eax
movsxd rsi, eax
mov edx, 1
mov rcx, rsi
xor r8d, r8d
call fcn.140042c20
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.1400b9c20
mov edx, dword [0x140128a40]
mov ecx, dword [0x140128a3c]
mov qword [rsp + 0x20], rdi
mov r8d, 1
mov r9d, 1
call qword [sym.imp.GDI32.dll_CreateBitmap]
mov qword [0x140128aa0], rax
mov rcx, rdi
call fcn.140042cc0
mov r9d, dword [0x140128a40]
mov r8d, dword [0x140128a3c]
mov rdx, qword [0x140128aa0]
mov rcx, qword [0x140127008]
call qword [sym.imp.USER32.dll_CreateCaret]
movabs rax, 0x1f0000001c
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], 0
mov rax, qword [0x140128a88]
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 [0x140127008]
lea r8, [rsp + 0x80]
mov edx, 1
xor r9d, r9d
call qword [sym.imp.USER32.dll_SetScrollInfo]
mov dword [0x140128aa8], 0
mov dword [0x140128aac], 0
call qword [sym.imp.USER32.dll_GetDoubleClickTime]
mov dword [0x140128ab0], eax
mov rcx, qword [0x140127008]
xor edx, edx
call qword [sym.imp.USER32.dll_GetSystemMenu]
mov qword [0x140128ac0], rax
call qword [sym.imp.USER32.dll_CreatePopupMenu]
mov qword [0x140128ac8], rax
lea r9, [0x1401012f0]
mov rbx, qword [sym.imp.USER32.dll_AppendMenuA]
mov r8d, 0x190
mov rcx, rax
xor edx, edx
call rbx
mov rcx, qword [0x140128ac8]
lea r9, str.Paste
mov r8d, 0x1a0
xor edx, edx
call rbx
call qword [sym.imp.USER32.dll_CreateMenu]
mov qword [0x140128ad0], rax
lea rcx, [0x140128ad8]
mov dl, 1
call fcn.14003c0e0
mov rsi, qword [sym.imp.USER32.dll_DeleteMenu]
nop dword [rax]
mov rcx, qword [0x140128ad0]
xor edx, edx
mov r8d, 0x400
call rsi
test eax, eax
jne 0x140005a50
cmp dword [0x140128ad8], 2
jl 0x140005ac1
mov edi, 1
mov esi, 0x1000
nop dword [rax + rax]
mov rax, qword [0x140128ae0]
mov r9, qword [rax + rdi*8]
mov rcx, qword [0x140128ad0]
xor edx, edx
mov r8, rsi
call rbx
add rdi, 1
mov eax, dword [0x140128ad8]
cmp eax, 0x401
mov ecx, 0x401
cmovl ecx, eax
movsxd rcx, ecx
add rsi, 0x10
cmp rdi, rcx
jl 0x140005a80
cmp eax, 1
jg 0x140005ae0
mov rcx, qword [0x140128ad0]
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 0x140005b4e
mov rcx, r13
mov rdx, qword [0x1400e7210]
call fcn.140041fc0
mov rbp, rax
mov r8d, 0x150
mov rcx, rsi
xor edx, edx
mov r9, rax
call rbx
mov rcx, rbp
call fcn.140042cc0
mov eax, 1
test dil, 1
mov edi, 0
je 0x140005c92
lea rcx, [0x140128ac0]
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 [0x140128ad0]
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 [0x140127f28]
mov edx, 0x7a
call fcn.140040a90
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.14000d230
test al, al
je 0x140005b10
mov r8d, 0x140
mov rcx, rsi
xor edx, edx
lea r9, [0x1401057fc]
call rbx
jmp 0x140005b10
call fcn.140046c10
test al, al
je 0x140005cb2
mov rax, qword [0x140127018]
lea rcx, [0x140127018]
lea rdx, str.Running_with_restricted_process_ACL
call qword [rax]
mov rcx, qword [0x140127008]
call fcn.14002c000
call fcn.140006910
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.1400ca484
mov dword [0x1401292bc], eax
mov rcx, qword [0x140127008]
mov edx, dword [rsp + 0x6c]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140127008]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x140127008]
sete dl
mov rcx, qword [0x140128a88]
call fcn.140019c40
mov rcx, qword [0x140127008]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov r8, qword [0x140128af0]
mov rcx, qword [0x140127008]
lea rdx, [0x140127010]
call fcn.14000cf90
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 0x140005d83
call fcn.14002c2e0
call fcn.14002c340
mov esi, 0
test al, al
jne 0x140005dd1
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 0x140005dd1
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x140127008]
sete dl
mov rcx, qword [0x140128a88]
call fcn.140019c40
mov esi, 0xffffffff
call fcn.14002c7f0
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 0x140005e05
mov rcx, rbx
mov edx, eax
call fcn.14002c8c0
mov rcx, rbx
call fcn.14002c930
jmp 0x140005e27
mov rcx, rdi
call r12
cmp dword [rsp + 0x88], 0x8005
jne 0x140005d7e
mov dword [rsp + 0x20], 1
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call rbp
test eax, eax
je 0x140005d7e
cmp dword [rsp + 0x88], 0x12
je 0x140005e6f
call fcn.140022000
mov rsi, rax
mov rcx, rax
call r15
test eax, eax
je 0x140005e10
mov rcx, rsi
mov rdx, rdi
call r13
test eax, eax
jne 0x140005e16
jmp 0x140005e10
mov ecx, dword [rsp + 0x90]
call fcn.140006b20
int3