Function at 0x140031ba8
Capabilities:
Get geographical location

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
mov rbx, rdx
mov rsi, rcx
lea rdi, [rsp + 0xf0]
mov rcx, rdi
call fcn.140002be7
cmp byte [rdi], 0
movabs r12, 0x8000000000000000
je 0x140031bf4
mov rax, qword [rsp + 0xf8]
mov qword [rsi + 8], rax
mov qword [rsi], r12
jmp 0x1400323f1
cmp byte [rsp + 0xf1], 0
je 0x140031fbe
movzx eax, byte [rsp + 0xf2]
cmp eax, 0x5b
je 0x140031eae
cmp eax, 0x7b
jne 0x1400320e1
dec byte [rbx + 0x30]
je 0x14003200c
inc qword [rbx + 0x28]
mov rax, r12
lea r12, [rbx + 0x18]
xor edi, edi
lea rbp, [rsp + 0xc0]
lea r13, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov r14, rax
mov qword [rsp + 0x30], rax
mov rcx, rbp
mov rdx, rbx
call fcn.140002be7
cmp byte [rsp + 0xc0], 0
jne 0x140031faa
cmp byte [rsp + 0xc1], 0
je 0x14003213d
mov al, byte [rsp + 0xc2]
movzx ecx, al
cmp ecx, 0x2c
je 0x140031c96
cmp ecx, 0x7d
je 0x140031fcc
test dil, 1
je 0x140031cc5
jmp 0x140032183
test dil, 1
je 0x140031cc5
inc qword [rbx + 0x28]
mov rcx, r13
mov rdx, rbx
call fcn.140002be7
cmp byte [rsp + 0x50], 0
jne 0x1400320fd
cmp byte [rsp + 0x51], 0
je 0x140032258
mov al, byte [rsp + 0x52]
cmp al, 0x22
jne 0x140032107
inc qword [rbx + 0x28]
and qword [rbx + 0x10], 0
mov rcx, r13
mov rdx, r12
mov r8, rbx
call fcn.1401133bf
cmp dword [rsp + 0x50], 2
mov r15, qword [rsp + 0x58]
je 0x14003226f
mov rdi, qword [rsp + 0x60]
mov r9d, 4
mov rcx, r15
mov rdx, rdi
lea r8, [0x1403aac34]
call fcn.140064d09
test al, al
jne 0x140031d6e
mov r9d, 4
mov rcx, r15
mov rdx, rdi
lea r8, [0x1403aac38]
call fcn.140064d09
test al, al
jne 0x140031dd4
mov r9d, 6
mov rcx, r15
mov rdx, rdi
lea r8, [0x1403aac3c]
call fcn.140064d09
test al, al
jne 0x140031e41
mov rcx, rbx
call fcn.140017944
mov dil, 1
test rax, rax
je 0x140031c4c
jmp 0x14003226c
movabs rdi, 0x8000000000000000
cmp r14, rdi
jne 0x140032415
lea rcx, [rsp + 0x140]
mov rdx, rbx
call fcn.14001739a
mov r14, qword [rsp + 0x140]
cmp r14, rdi
je 0x1400321b0
mov rcx, rdi
mov rdx, qword [rsp + 0x40]
call fcn.14000a0fc
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0xa0], rax
mov dil, 1
jmp 0x140031c4c
movabs rdi, 0x8000000000000000
cmp qword [rsp + 0x28], rdi
jne 0x140032431
lea rcx, [rsp + 0xd0]
mov rdx, rbx
call fcn.14001739a
mov rax, qword [rsp + 0xd0]
cmp rax, rdi
je 0x1400321c8
mov qword [rsp + 0x28], rax
mov rcx, rdi
mov rdx, qword [rsp + 0x48]
call fcn.14000a0fc
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x138], rax
mov dil, 1
jmp 0x140031c4c
movabs rdi, 0x8000000000000000
cmp qword [rsp + 0x30], rdi
jne 0x140032452
lea rcx, [rsp + 0xa8]
mov rdx, rbx
call fcn.14001739a
mov r15, qword [rsp + 0xa8]
cmp r15, rdi
je 0x14003220f
mov rcx, rdi
mov rdx, qword [rsp + 0x38]
call fcn.14000a0fc
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x130], rax
mov dil, 1
mov qword [rsp + 0x30], r15
jmp 0x140031c4c
dec byte [rbx + 0x30]
je 0x14003200c
inc qword [rbx + 0x28]
lea rdx, [rsp + 0xa8]
mov qword [rdx], rbx
mov byte [rdx + 8], 1
lea rdi, [rsp + 0x50]
mov rcx, rdi
call fcn.140019cea
mov r14, qword [rdi]
movabs rbp, 0x8000000000000001
cmp r14, rbp
je 0x140031f9d
movabs r13, 0x8000000000000000
cmp r14, r13
je 0x140032127
lea rdi, [rsp + 0x50]
mov r15, qword [rdi + 8]
mov r12, qword [rdi + 0x10]
lea rdx, [rsp + 0xa8]
mov rcx, rdi
call fcn.140019cea
mov rdi, qword [rdi]
cmp rdi, rbp
je 0x140031fb7
cmp rdi, r13
je 0x14003216a
mov qword [rsp + 0x30], r12
lea r13, [rsp + 0x50]
mov rax, qword [r13 + 8]
mov qword [rsp + 0x28], rax
mov rax, qword [r13 + 0x10]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0xa8]
mov rcx, r13
call fcn.140019cea
mov r12, qword [r13]
cmp r12, rbp
je 0x140032025
movabs rax, 0x8000000000000000
cmp r12, rax
je 0x1400321f6
lea rax, [rsp + 0x58]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0xd0], xmm0
movabs rbp, 0x8000000000000000
jmp 0x140032052
mov r15, qword [rsp + 0x58]
mov rbp, r12
jmp 0x14003204f
mov r15, qword [rsp + 0xc8]
jmp 0x14003226f
mov r13, qword [rsp + 0x58]
jmp 0x140032037
lea rdx, [rsp + 0x50]
mov qword [rdx], 5
jmp 0x140032018
movabs r12, 0x8000000000000000
cmp r14, r12
setne bpl
je 0x140032194
cmp qword [rsp + 0x28], r12
setne r13b
je 0x1400321e0
cmp qword [rsp + 0x30], r12
je 0x140032226
mov r15, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
jmp 0x1400322db
lea rdx, [rsp + 0x50]
mov qword [rdx], reloc.WS2_32.dll_setsockopt
mov rcx, rbx
call fcn.1402ddbec
jmp 0x140031be8
mov r13, qword [rsp + 0x58]
mov rcx, rdi
mov rdx, qword [rsp + 0x28]
call fcn.1400afd38
mov rcx, r14
mov rdx, r15
call fcn.1400afd38
mov r15, r13
movabs rbp, 0x8000000000000000
mov r14, rbp
inc byte [rbx + 0x30]
mov rcx, rbx
call fcn.140002ddd
mov r13, rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r15
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], r12
movaps xmm0, xmmword [rsp + 0xd0]
movups xmmword [rsp + 0x88], xmm0
mov qword [rsp + 0x98], r13
cmp r14, rbp
mov r12, rbp
jne 0x1400320c3
test r13, r13
jne 0x140032358
jmp 0x140032365
test r13, r13
je 0x140032381
lea rcx, [rsp + 0x50]
call fcn.14000b00d
mov r14, r12
mov r15, r13
jmp 0x1400323b5
lea r8, [0x1402e5e18]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1402d91c2
mov r15, rax
jmp 0x140032405
mov r15, qword [rsp + 0x58]
jmp 0x14003226f
movzx eax, al
cmp eax, 0x7d
movabs r12, 0x8000000000000000
lea rdx, [rsp + 0x50]
jne 0x14003214e
mov qword [rdx], reloc.WS2_32.dll_select
jmp 0x140032155
lea rdx, str.struct_Credentials_with_3_elements
xor ecx, ecx
call fcn.1402d994a
mov r15, rax
jmp 0x140031fa2
lea rdx, [rsp + 0x50]
mov qword [rdx], 3
jmp 0x140032264
mov qword [rdx], reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.1402ddbec
mov r15, rax
xor r13d, r13d
xor ebp, ebp
jmp 0x14003227e
lea rdx, str.struct_Credentials_with_3_elements
mov ecx, 1
call fcn.1402d994a
mov r13, rax
jmp 0x140032037
lea rdx, [rsp + 0x50]
mov qword [rdx], 8
jmp 0x140032264
lea rcx, [0x1403aac34]
mov edx, 4
call fcn.1402d98f4
mov r15, rax
xor r13d, r13d
jmp 0x14003227e
mov r15, qword [rsp + 0x148]
xor r13d, r13d
mov r14, rdi
xor ebp, ebp
mov r12, rdi
jmp 0x14003227e
mov r15, qword [rsp + 0xd8]
xor r13d, r13d
mov rcx, rdi
xor ebp, ebp
mov r12, rdi
jmp 0x140032283
lea rcx, [0x1403aac38]
mov edx, 4
call fcn.1402d98f4
mov r15, rax
jmp 0x140032249
lea rdx, str.struct_Credentials_with_3_elements
mov ecx, 2
call fcn.1402d994a
mov r13, rax
jmp 0x14003202a
mov r15, qword [rsp + 0xb0]
xor ebp, ebp
xor r13d, r13d
mov r12, rdi
mov rcx, qword [rsp + 0x28]
jmp 0x14003229f
lea rcx, [0x1403aac3c]
mov edx, 6
call fcn.1402d98f4
mov r15, rax
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
call fcn.1400afd38
mov rcx, r14
mov rdx, qword [rsp + 0x40]
call fcn.1400afd38
jmp 0x14003227e
lea rdx, [rsp + 0x50]
mov qword [rdx], 5
mov rcx, rbx
call fcn.1402ddbec
mov r15, rax
xor r13d, r13d
xor ebp, ebp
movabs r12, 0x8000000000000000
mov rcx, qword [rsp + 0x28]
cmp qword [rsp + 0x30], r12
je 0x14003229f
mov rdi, rcx
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
call fcn.1400afd38
mov rcx, rdi
test r13b, r13b
mov r13, qword [rsp + 0x48]
mov qword [rsp + 0x28], rcx
jne 0x1400322c0
cmp rcx, r12
je 0x1400322c0
mov rcx, qword [rsp + 0x28]
mov rdx, r13
call fcn.1400afd38
cmp r14, r12
sete al
or bpl, al
jne 0x1400322d8
mov rcx, r14
mov rdx, qword [rsp + 0x40]
call fcn.1400afd38
mov r14, r12
mov rbp, qword [rsp + 0xa0]
inc byte [rbx + 0x30]
mov rcx, rbx
call fcn.140002d68
mov rdi, rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], rbp
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r13
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rdi
cmp r14, r12
jne 0x14003236a
test rdi, rdi
je 0x140032365
lea rcx, [rsp + 0x98]
call fcn.140009e87
mov r14, r12
jmp 0x1400323b5
test rdi, rdi
je 0x140032381
lea rcx, [rsp + 0x50]
call fcn.14000b00d
mov r14, r12
mov r15, rdi
jmp 0x1400323b5
lea rax, [rsp + 0x60]
mov rcx, qword [rax + 0x30]
mov qword [rsp + 0x120], rcx
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movaps xmmword [rsp + 0x110], xmm2
movaps xmmword [rsp + 0x100], xmm1
movaps xmmword [rsp + 0xf0], xmm0
cmp r14, r12
je 0x140032405
mov rax, qword [rsp + 0x120]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [rsp + 0xf0]
movaps xmm1, xmmword [rsp + 0x100]
movaps xmm2, xmmword [rsp + 0x110]
movups xmmword [rsi + 0x30], xmm2
movups xmmword [rsi + 0x20], xmm1
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi], r14
mov qword [rsi + 8], r15
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbx
mov rdx, r15
call fcn.1402d9180
jmp 0x140031be8
lea rcx, [0x1403aac34]
mov edx, 4
call fcn.1402d99c1
mov r15, rax
xor r13d, r13d
jmp 0x1400321be
lea rcx, [0x1403aac38]
mov edx, 4
call fcn.1402d99c1
mov rcx, qword [rsp + 0x28]
mov r15, rax
xor r13d, r13d
jmp 0x1400321d6
lea rcx, [0x1403aac3c]
mov edx, 6
call fcn.1402d99c1
mov r15, rax
xor ebp, ebp
xor r13d, r13d
mov r12, rdi
mov rcx, qword [rsp + 0x28]
jmp 0x14003228a