Function at 0x1400d59f0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x6f0]
sub rsp, 0x7f0
mov rax, qword [0x1401f2308]
xor rax, rsp
mov qword [rbp + 0x6e0], rax
mov r14, rdx
mov r15, rcx
lea rdx, [0x1401aef48]
lea rcx, [rbp - 0x78]
call fcn.140031960
nop
movups xmm0, xmmword [str.ESET_SysInspector]
movups xmmword [rsp + 0x78], xmm0
lea r13, vtable.CBuffer.0
mov qword [rsp + 0x50], r13
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r12
call fcn.140090f10
mov qword [rsp + 0x40], r12
mov byte [rsp + 0x20], 1
mov r9d, 0x20019
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareESETESET_SysinspectorCurrentVersion
mov rcx, 0xffffffff80000001
call fcn.14005aa30
nop
mov dword [rsp + 0x48], r12d
lea r8, [rsp + 0x48]
lea rdx, str.Language
mov rcx, qword [rsp + 0x40]
call fcn.14005abf0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400d5ac8
call qword [0x1401f2168]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rbx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rbx, qword [rbp - 0x78]
test r14, r14
je 0x1400d61cf
test rbx, rbx
je 0x1400d61cf
mov rsi, qword [rsp + 0x78]
test rsi, rsi
je 0x1400d61cf
mov dword [rsp + 0x40], 4
mov r9d, 4
lea r8, [rsp + 0x40]
mov edx, 0x52eed
lea rcx, [rsp + 0x50]
call fcn.14005a760
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x40], eax
mov r9d, 4
lea r8, [rsp + 0x40]
mov edx, 0x52ee0
lea rcx, [rsp + 0x50]
call fcn.14005a760
mov rdi, 0xffffffffffffffff
mov r9, rdi
lea r9, [r9 + 1]
cmp word [rbx + r9*2], 0
jne 0x1400d5b44
lea r9, [r9*2 + 2]
mov r8, rbx
mov edx, 0xe2ee2
lea rcx, [rsp + 0x50]
call fcn.14005a760
mov r9, rdi
nop dword [rax]
lea r9, [r9 + 1]
cmp word [rsi + r9*2], 0
jne 0x1400d5b70
lea r9, [r9*2 + 2]
mov r8, rsi
mov edx, 0xe2eec
lea rcx, [rsp + 0x50]
call fcn.14005a760
mov dword [rsp + 0x40], 0x203
mov r9d, 4
lea r8, [rsp + 0x40]
mov edx, 0x52ee1
lea rcx, [rsp + 0x50]
call fcn.14005a760
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [rsp + 0x40], eax
mov r9d, 4
lea r8, [rsp + 0x40]
mov edx, 0x52ee3
lea rcx, [rsp + 0x50]
call fcn.14005a760
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x2e0]
call main
mov r9d, 0x100
lea r8, [rbp + 0x2e0]
mov edx, 0x1002
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400d5c4a
lea rax, [rbp + 0x2e0]
mov r9, rdi
nop dword [rax + rax]
lea r9, [r9 + 1]
cmp word [rax + r9*2], 0
jne 0x1400d5c20
lea r9, [r9*2 + 2]
lea r8, [rbp + 0x2e0]
mov edx, 0xe2ee4
lea rcx, [rsp + 0x50]
call fcn.14005a760
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov ebx, eax
test eax, eax
je 0x1400d5cd7
mov ecx, dword [rbp - 0x50]
mov dword [rsp + 0x40], ecx
mov r9d, 4
lea r8, [rsp + 0x40]
mov edx, 0x52eea
lea rcx, [rsp + 0x50]
call fcn.14005a760
mov r9, rdi
cmp ebx, 2
jne 0x1400d5ca2
lea rax, [rbp + 8]
nop word [rax + rax]
lea r9, [r9 + 1]
cmp word [rax + r9*2], 0
jne 0x1400d5c90
lea r8, [rbp + 8]
jmp 0x1400d5cc0
lea rax, [rbp - 0x4c]
nop word [rax + rax]
lea r9, [r9 + 1]
cmp word [rax + r9*2], 0
jne 0x1400d5cb0
lea r8, [rbp - 0x4c]
lea r9, [r9*2 + 2]
mov edx, 0xe2eeb
lea rcx, [rsp + 0x50]
call fcn.14005a760
mov qword [rsp + 0x40], r12
mov byte [rsp + 0x20], 1
mov r9d, 0x20019
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareESETESET_SecurityCurrentVersionInfo
mov rcx, 0xffffffff80000002
call fcn.14005aa30
mov word [rbp + 0x1e0], r12w
test al, al
je 0x1400d5d8a
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x1400d5d8a
mov qword [rsp + 0x20], r12
mov r9d, 0x80
lea r8, [rbp + 0x1e0]
lea rdx, str.UniqueId
mov rcx, rsi
call fcn.14005acd0
cmp r12w, word [rbp + 0x1e0]
setne bl
mov rcx, rsi
call qword [0x1401f2168]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test bl, bl
je 0x1400d5d8a
lea rax, [rbp + 0x1e0]
mov r9, rdi
lea r9, [r9 + 1]
cmp word [rax + r9*2], 0
jne 0x1400d5d60
lea r9, [r9*2 + 2]
lea r8, [rbp + 0x1e0]
mov edx, 0xe2ef5
lea rcx, [rsp + 0x50]
call fcn.14005a760
mov ebx, dword [0x1401f2340]
cmp ebx, 0xffffffff
jne 0x1400d5e07
mov ebx, r12d
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x40], r12
mov byte [rsp + 0x20], 1
mov r9d, 0x20019
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareESETESET_SecurityCurrentVersionInfo
mov rcx, 0xffffffff80000002
call fcn.14005aa30
test al, al
je 0x1400d5e01
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x1400d5e01
lea r8, [rsp + 0x48]
lea rdx, str.ActiveFeatures
mov rcx, rsi
call fcn.14005abf0
mov ebx, dword [rsp + 0x48]
test al, al
cmove ebx, r12d
mov rcx, rsi
call qword [0x1401f2168]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [0x1401f2340], ebx
test ebx, ebx
jne 0x1400d5e16
call fcn.1400257b0
mov ebx, eax
test eax, eax
je 0x1400d5e34
mov dword [rsp + 0x40], ebx
mov r9d, 4
lea r8, [rsp + 0x40]
mov edx, 0x52ef7
lea rcx, [rsp + 0x50]
call fcn.14005a760
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x4e0]
call main
mov edx, 0x100
lea rcx, [rbp + 0x4e0]
call fcn.140025520
test al, al
je 0x1400d5e9a
lea rax, [rbp + 0x4e0]
mov r9, rdi
nop word [rax + rax]
lea r9, [r9 + 1]
cmp word [rax + r9*2], 0
jne 0x1400d5e70
lea r9, [r9*2 + 2]
lea r8, [rbp + 0x4e0]
mov edx, 0xe2ef8
lea rcx, [rsp + 0x50]
call fcn.14005a760
xorps xmm0, xmm0
movaps xmmword [rbp + 0x60], xmm0
movaps xmmword [rbp + 0x70], xmm0
movaps xmmword [rbp + 0x80], xmm0
movaps xmmword [rbp + 0x90], xmm0
movaps xmmword [rbp + 0xa0], xmm0
movaps xmmword [rbp + 0xb0], xmm0
movaps xmmword [rbp + 0xc0], xmm0
movaps xmmword [rbp + 0xd0], xmm0
call fcn.140025710
test al, al
jne 0x1400d5f51
call fcn.1400257b0
shr eax, 3
test al, 1
je 0x1400d5eed
lea r8, str.endpoint
jmp 0x1400d5eff
call fcn.1400257b0
shr eax, 1
test al, 1
je 0x1400d5f51
lea r8, str.home
mov rax, rdi
inc rax
cmp byte [r8 + rax], 0
jne 0x1400d5f02
cmp rax, 0x80
jae 0x1400d5fe0
lfence
mov rax, rdi
nop
inc rax
cmp byte [r8 + rax], 0
jne 0x1400d5f20
lfence
mov edx, 0x80
lea rcx, [rbp + 0x60]
cmp rax, rdx
jae 0x1400d5f43
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
jmp 0x1400d5fb8
mov r9d, 0x7f
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
jmp 0x1400d5fb1
mov edx, 0x40
lea rcx, [rbp + 0x160]
call fcn.140025520
test al, al
je 0x1400d5fe0
lea rcx, [rbp + 0x160]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400d5f70
cmp rax, 0x80
jae 0x1400d5fe0
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, [rbp + 0x160]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [rbp + 0xdf], 0
lea rax, [rbp + 0x60]
mov r9, rdi
nop
inc r9
cmp byte [rax + r9], 0
jne 0x1400d5fc0
inc r9
lea r8, [rbp + 0x60]
mov edx, 0xd2f02
lea rcx, [rsp + 0x50]
call fcn.14005a760
mov qword [rsp + 0x40], r12
mov byte [rsp + 0x20], 1
mov r9d, 0x20019
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareESETESET_SecurityCurrentVersionInfo
mov rcx, 0xffffffff80000002
call fcn.14005aa30
mov word [rbp + 0xe0], r12w
test al, al
je 0x1400d6099
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x1400d6099
mov qword [rsp + 0x20], r12
mov r9d, 0x40
lea r8, [rbp + 0xe0]
lea rdx, str.LicensePartnerCountry
mov rcx, rsi
call fcn.14005acd0
cmp r12w, word [rbp + 0xe0]
setne bl
mov rcx, rsi
call qword [0x1401f2168]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test bl, bl
je 0x1400d6099
lea rax, [rbp + 0xe0]
nop word [rax + rax]
lea rdi, [rdi + 1]
cmp word [rax + rdi*2], 0
jne 0x1400d6070
lea r9, [rdi*2 + 2]
lea r8, [rbp + 0xe0]
mov edx, 0xe2f07
lea rcx, [rsp + 0x50]
call fcn.14005a760
mov ebx, r12d
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x78], r12
mov byte [rsp + 0x20], 1
mov r9d, 0x20019
lea r8, [rsp + 0x78]
lea rdx, str.SoftwareESETESET_SecurityCurrentVersionInfo
mov rcx, 0xffffffff80000002
call fcn.14005aa30
test al, al
je 0x1400d6105
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x1400d6105
lea r8, [rsp + 0x48]
lea rdx, str.LicensePartnerId
mov rcx, rdi
call fcn.14005abf0
mov ebx, dword [rsp + 0x48]
test al, al
cmove ebx, r12d
mov rcx, rdi
call qword [0x1401f2168]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x40], ebx
mov r9d, 4
lea r8, [rsp + 0x40]
mov edx, 0x52f08
lea rcx, [rsp + 0x50]
call fcn.14005a760
call fcn.1400257b0
shr eax, 1
test al, 1
jne 0x1400d6179
mov qword [rsp + 0x78], r12
mov byte [rsp + 0x20], 1
mov r9d, 0x20019
lea r8, [rsp + 0x78]
lea rdx, str.SoftwareESETRemoteAdministratorAgentCurrentVersionInfo
mov rcx, 0xffffffff80000002
call fcn.14005aa30
test al, al
je 0x1400d6179
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400d6179
call qword [0x1401f2168]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
jmp 0x1400d617c
mov eax, r12d
mov dword [rsp + 0x40], eax
mov r9d, 4
lea r8, [rsp + 0x40]
mov edx, 0x52f09
lea rcx, [rsp + 0x50]
call fcn.14005a760
mov rax, qword [r14]
mov r8, qword [rsp + 0x70]
mov qword [r14], r8
cmp rax, r8
jae 0x1400d61b1
mov ebx, 0x1b61
jmp 0x1400d61d4
test r15, r15
je 0x1400d61ca
mov rdx, r12
test r8, r8
cmovne rdx, qword [rsp + 0x60]
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
mov ebx, r12d
jmp 0x1400d61d4
mov ebx, 0x1b62
mov qword [rsp + 0x50], r13
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400d61ea
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x1400d622d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d6228
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d6228
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140027f70
movdqa xmm0, xmmword [0x1401b4e20]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r12w
mov eax, ebx
mov rcx, qword [rbp + 0x6e0]
xor rcx, rsp
call fcn.140160900
mov rbx, qword [rsp + 0x840]
add rsp, 0x7f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret