Function at 0x140027720
Capabilities:
Get geographical location

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1401f2308]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx r13d, word [rsp + 0xd8]
mov r12, r8
mov dword [rsp + 0x24], r9d
mov r15, rdx
mov rbp, rcx
test r8, r8
je case.0x1400278cf.3
test rcx, rcx
jne 0x14002776e
test rdx, rdx
jne case.0x1400278cf.3
mov ecx, dword [rsp + 0xd0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
test ecx, ecx
je case.0x1400278cf.3
mov r9d, reloc.WS2_32.dll_ntohs
lea r8, [rsp + 0x30]
lea edx, [r9 + 0x4a]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov r14, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov rax, r14
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400277b0
test rax, rax
je case.0x1400278cf.3
xor eax, eax
mov word [rsp + 0x20], r13w
mov edi, eax
mov word [rsp + 0x22], ax
lea rsi, [0x1401f2620]
nop dword [rax]
mov rcx, qword [rsi]
mov qword [rsp + 0x28], rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov rcx, rax
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x140027852
nop dword [rax]
lea r8, [rsp + 0x30]
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140027834
add rax, 2
test ecx, ecx
jne 0x140027820
test edx, edx
je 0x140027871
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
jne 0x140027810
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc edi
add rsi, 0x18
cmp edi, 0xb
jae case.0x1400278cf.3
xor eax, eax
jmp 0x1400277e0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movsxd rax, edi
lea rdi, [0x1401f2620]
lea rcx, [rax + rax*2]
lea rbx, [rcx*8]
mov ecx, dword [rsp + 0x24]
mov rax, qword [rbx + rdi + 0x10]
call qword [case.0x1400309a4.0]
test dword [rbx + rdi + 8], eax
je case.0x1400278cf.3
dec eax
cmp eax, 0x1f
ja case.0x1400278cf.3
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x27a3c]
mov ecx, dword [rdx + rax*4 + 0x27a20]
add rcx, rdx
jmp rcx
lea rbx, [0x1401a6878]
jmp 0x140027905
lea rbx, [0x1401a6870]
jmp 0x140027905
lea rbx, [0x1401a6868]
jmp 0x140027905
lea rbx, [0x1401a6860]
jmp 0x140027905
lea rbx, [0x1401a6858]
jmp 0x140027905
lea rbx, [0x1401a6850]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je case.0x1400278cf.3
mov rcx, r14
nop dword [rax]
cmp word [rbx + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140027920
lea rbx, [rax + rcx*2]
inc r14
cmp word [rbx + r14*2], 0
jne 0x140027930
movzx edx, r13w
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x140027956
mov r14, rax
sub r14, rbx
sar r14, 1
test r15, r15
jne 0x140027964
lea rax, [r14 + 1]
jmp 0x140027a01
lea rsi, [r15 + r15]
xor edx, edx
mov r8, rsi
mov rcx, rbp
call main
cmp r15, r14
jb 0x14002799a
lea rdi, [r14 + r14]
test rdi, rdi
je 0x1400279bc
test rbp, rbp
jne 0x1400279a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], socket
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x7a
jmp 0x1400279f9
test rbx, rbx
je 0x1400279c4
cmp rsi, rdi
jb 0x1400279c4
lfence
mov r8, rdi
mov rdx, rbx
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
lfence
mov rax, r14
jmp 0x140027a01
mov r8, rsi
xor edx, edx
mov rcx, rbp
call main
test rbx, rbx
je 0x140027988
cmp rsi, rdi
jae 0x14002799a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x7a
jmp 0x1400279f9
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140160900
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret