Function at 0x18031cff0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x180563540]
xor rax, rsp
mov qword [rsp + 0x60], rax
call fcn.1802eed50
add rax, 0x98
mov qword [rsp + 0x20], rax
mov r8d, recv
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1803cd290
call fcn.1802eed50
add rax, 0x3a0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x50]
mov qword [rax], rcx
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x20]
mov qword [rcx], rax
mov rax, qword [rsp + 0x80]
add rax, 0x80
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x20]
cmp qword [rax + 8], 0
je 0x18031d0c5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 8]
movzx eax, word [rax]
test eax, eax
je 0x18031d0c5
mov rax, qword [rsp + 0x20]
add rax, 8
mov rcx, qword [0x1804c3520]
dec rcx
mov r8, rax
mov edx, ecx
lea rcx, str.america
call fcn.18031cf30
mov rax, qword [rsp + 0x28]
mov dword [rax], 0
mov rax, qword [rsp + 0x20]
cmp qword [rax], 0
je 0x18031d189
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
movzx eax, word [rax]
test eax, eax
je 0x18031d189
mov rax, qword [rsp + 0x20]
cmp qword [rax + 8], 0
je 0x18031d11a
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 8]
movzx eax, word [rax]
test eax, eax
je 0x18031d11a
mov rcx, qword [rsp + 0x28]
call fcn.18031c4a0
jmp 0x18031d124
mov rcx, qword [rsp + 0x28]
call fcn.18031c5b0
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
jne 0x18031d187
mov rax, qword [rsp + 0x20]
mov rcx, qword [0x1804c33a0]
dec rcx
mov r8, rax
mov edx, ecx
lea rcx, str.american
call fcn.18031cf30
movzx eax, al
test eax, eax
je 0x18031d187
mov rax, qword [rsp + 0x20]
cmp qword [rax + 8], 0
je 0x18031d17d
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 8]
movzx eax, word [rax]
test eax, eax
je 0x18031d17d
mov rcx, qword [rsp + 0x28]
call fcn.18031c4a0
jmp 0x18031d187
mov rcx, qword [rsp + 0x28]
call fcn.18031c5b0
jmp 0x18031d1bb
mov rax, qword [rsp + 0x20]
cmp qword [rax + 8], 0
je 0x18031d1b1
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 8]
movzx eax, word [rax]
test eax, eax
je 0x18031d1b1
mov rcx, qword [rsp + 0x28]
call fcn.18031c3d0
jmp 0x18031d1bb
mov rcx, qword [rsp + 0x28]
call fcn.18031c450
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
jne 0x18031d1cc
xor eax, eax
jmp 0x18031d34b
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x80], 0
je 0x18031d1f6
mov rax, qword [rsp + 0x80]
add rax, 0x100
mov qword [rsp + 0x40], rax
jmp 0x18031d1ff
mov qword [rsp + 0x40], 0
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.18031cd60
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18031d22a
movzx eax, word [rsp + 0x30]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
jne 0x18031d231
xor eax, eax
jmp 0x18031d34b
mov edx, 1
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 4]
call qword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
jne 0x18031d24f
xor eax, eax
jmp 0x18031d34b
cmp qword [rsp + 0x88], 0
je 0x18031d268
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
mov rax, qword [rsp + 0x20]
add rax, 0x258
xor r9d, r9d
mov r8d, 0x55
mov rdx, rax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 4]
call fcn.1802faa90
cmp qword [rsp + 0x90], 0
je 0x18031d346
mov rax, qword [rsp + 0x90]
add rax, 0x120
xor r9d, r9d
mov r8d, 0x55
mov rdx, rax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 4]
call fcn.1802faa90
mov rax, qword [rsp + 0x90]
mov r9d, 0x40
mov r8, rax
mov edx, 0x1001
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 4]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x18031d2ee
xor eax, eax
jmp 0x18031d34b
mov rax, qword [rsp + 0x90]
add rax, 0x80
mov r9d, 0x40
mov r8, rax
mov edx, 0x1002
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x18031d320
xor eax, eax
jmp 0x18031d34b
mov rax, qword [rsp + 0x90]
add rax, 0x100
mov r9d, 0xa
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rax
mov ecx, dword [rsp + 0x30]
call fcn.180303bd0
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18025a470
add rsp, 0x78
ret