Function at 0x140037063
Capabilities:
Get geographical location

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rbx, rdx
mov r14, rcx
lea rsi, [rsp + 0x1f0]
mov rcx, rsi
call fcn.140002f38
cmp byte [rsi], 0
je 0x1400370a9
mov rax, qword [rsp + 0x1f8]
mov qword [r14 + 8], rax
mov qword [r14], 2
jmp 0x140037d80
cmp byte [rsp + 0x1f1], 0
je 0x1400370e2
cmp byte [rsp + 0x1f2], 0x6e
jne 0x1400370e2
inc qword [rbx + 0x10]
lea rdx, [0x1404074f7]
mov r8d, 3
mov rcx, rbx
call fcn.14000265c
test rax, rax
jne 0x140037099
xor eax, eax
jmp 0x140037d7d
lea rsi, [rsp + 0x3c8]
mov rcx, rsi
mov rdx, rbx
call fcn.140002f38
cmp byte [rsi], 0
je 0x140037110
mov rax, qword [rsp + 0x3d0]
mov qword [r14 + 8], rax
mov eax, 2
jmp 0x140037d7d
cmp byte [rsp + 0x3c9], 0
je 0x140037668
movzx eax, byte [rsp + 0x3ca]
cmp eax, 0x5b
je 0x140037551
cmp eax, 0x7b
jne 0x140037772
dec byte [rbx + 0x30]
je 0x1400376f4
inc qword [rbx + 0x10]
lea rax, [rsp + 0x88]
and qword [rax - 8], 0
lea rax, [rsp + 0xa8]
and qword [rax - 8], 0
lea rax, [rsp + 0x68]
and qword [rax - 8], 0
lea rax, [rsp + 0x2b8]
and qword [rax - 8], 0
lea r12, [rbx + 0x18]
mov bpl, 1
xor eax, eax
mov qword [rsp + 0x38], rax
lea r13, [rsp + 0x220]
lea rsi, [rsp + 0xd8]
xor eax, eax
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [rsp + 0x20], rax
xor edi, edi
mov rcx, r13
mov rdx, rbx
call fcn.140002f38
cmp byte [rsp + 0x220], 0
jne 0x1400375f3
cmp byte [rsp + 0x221], 0
je 0x1400378b7
mov al, byte [rsp + 0x222]
movzx ecx, al
cmp ecx, 0x2c
je 0x1400371f4
cmp ecx, 0x7d
je 0x14003767c
test bpl, bpl
jne 0x14003722e
jmp 0x1400378c8
test dil, 1
je 0x14003722e
inc qword [rbx + 0x10]
mov rcx, rsi
mov rdx, rbx
call fcn.140002f38
cmp byte [rsp + 0xd8], 0
jne 0x14003778e
cmp byte [rsp + 0xd9], 0
je 0x140037bbb
mov al, byte [rsp + 0xda]
jmp 0x140037230
xor ebp, ebp
cmp al, 0x22
jne 0x140037838
inc qword [rbx + 0x10]
and qword [rbx + 0x28], 0
mov rcx, rsi
mov rdx, rbx
mov r8, r12
call fcn.14014928b
cmp dword [rsp + 0xd8], 2
mov r15, qword [rsp + 0xe0]
je 0x1400378e2
mov rdi, qword [rsp + 0xe8]
mov r9d, 4
mov rcx, r15
mov rdx, rdi
lea r8, [0x1404119af]
call fcn.14007dcaf
test al, al
jne 0x140037302
mov r9d, recvfrom
mov rcx, r15
mov rdx, rdi
lea r8, [0x140411a05]
call fcn.14007dcaf
test al, al
jne 0x140037392
mov r9d, 5
mov rcx, r15
mov rdx, rdi
lea r8, [0x140411d49]
call fcn.14007dcaf
test al, al
jne 0x140037422
mov r9d, reloc.WS2_32.dll_recv
mov rcx, r15
mov rdx, rdi
lea r8, [0x140411825]
call fcn.14007dcaf
test al, al
jne 0x1400374a6
mov rcx, rbx
call fcn.140019d46
mov dil, 1
test rax, rax
je 0x1400371ab
jmp 0x1400378df
cmp qword [rsp + 0x20], 1
je 0x140037dbc
mov rcx, rsi
mov rdx, rbx
call fcn.140019cce
cmp qword [rsp + 0xd8], 0
mov r15, qword [rsp + 0xe0]
jne 0x1400378e2
lea rax, [rsp + 0xe8]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x220], xmm0
lea rcx, [rsp + 0x80]
call fcn.14000c78e
mov qword [rsp + 0x80], 1
mov qword [rsp + 0x1e8], r15
mov qword [rsp + 0x88], r15
movaps xmm0, xmmword [rsp + 0x220]
lea rax, [rsp + 0x88]
movups xmmword [rax + 8], xmm0
mov dil, 1
mov eax, 1
mov qword [rsp + 0x20], rax
jmp 0x1400371ab
cmp qword [rsp + 0x28], 1
je 0x140037dca
mov rcx, rsi
mov rdx, rbx
call fcn.140019cce
cmp qword [rsp + 0xd8], 0
mov r15, qword [rsp + 0xe0]
jne 0x1400378e2
lea rax, [rsp + 0xe8]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x220], xmm0
lea rcx, [rsp + 0xa0]
call fcn.14000c78e
mov qword [rsp + 0xa0], 1
mov qword [rsp + 0x1e0], r15
mov qword [rsp + 0xa8], r15
movaps xmm0, xmmword [rsp + 0x220]
lea rax, [rsp + 0xa8]
movups xmmword [rax + 8], xmm0
mov dil, 1
mov eax, 1
mov qword [rsp + 0x28], rax
jmp 0x1400371ab
cmp qword [rsp + 0x48], 1
je 0x140037dd8
mov rcx, rsi
mov rdx, rbx
call fcn.140019cce
cmp qword [rsp + 0xd8], 0
mov r15, qword [rsp + 0xe0]
jne 0x1400378e2
lea rax, [rsp + 0xe8]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x220], xmm0
lea rcx, [rsp + 0x60]
call fcn.14000c78e
mov qword [rsp + 0x60], 1
mov qword [rsp + 0x1d8], r15
mov qword [rsp + 0x68], r15
movaps xmm0, xmmword [rsp + 0x220]
lea rax, [rsp + 0x68]
movups xmmword [rax + 8], xmm0
mov dil, 1
mov eax, 1
mov qword [rsp + 0x48], rax
jmp 0x1400371ab
cmp qword [rsp + 0x38], 1
je 0x140037dee
mov rcx, rbx
call fcn.140002fc3
test rax, rax
jne 0x140037b93
mov rcx, rsi
mov rdx, rbx
call fcn.140033ae8
cmp qword [rsp + 0xd8], 0
mov rdi, qword [rsp + 0xe0]
jne 0x140037b96
mov r8d, 0x88
mov rcx, r13
lea rdx, [rsp + 0xe8]
call fcn.1403318a0
cmp qword [rsp + 0x38], 0
je 0x140037510
lea rcx, [rsp + 0x2b8]
call fcn.14000c629
mov qword [rsp + 0x2b0], 1
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x2b8], rdi
mov r8d, 0x88
lea rcx, [rsp + 0x2c0]
mov rdx, r13
call fcn.1403318a0
mov dil, 1
mov eax, 1
mov qword [rsp + 0x38], rax
jmp 0x1400371ab
dec byte [rbx + 0x30]
je 0x1400376f4
inc qword [rbx + 0x10]
lea rdx, [rsp + 0x50]
mov qword [rdx], rbx
mov byte [rdx + 8], 1
lea rsi, [rsp + 0xd8]
mov rcx, rsi
call fcn.14001a8e7
mov rcx, qword [rsi]
cmp rcx, 2
jne 0x140037595
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x30], rax
jmp 0x140037c23
mov rax, qword [rsp + 0xe0]
movups xmm0, xmmword [rsp + 0xe8]
movaps xmmword [rsp + 0x220], xmm0
test rcx, rcx
je 0x140037862
movaps xmm0, xmmword [rsp + 0x220]
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x60], rax
lea rsi, [rsp + 0xd8]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14001a8e7
mov rcx, qword [rsi]
cmp rcx, 2
jne 0x140037600
mov rsi, qword [rsp + 0xe0]
jmp 0x140037c14
mov r15, qword [rsp + 0x228]
jmp 0x1400378e2
mov rax, qword [rsp + 0xe0]
movups xmm0, xmmword [rsp + 0xe8]
movaps xmmword [rsp + 0x220], xmm0
test rcx, rcx
je 0x140037ab5
movaps xmm0, xmmword [rsp + 0x220]
movups xmmword [rsp + 0x350], xmm0
mov qword [rsp + 0x348], rax
lea rsi, [rsp + 0xd8]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14001a8e7
mov rcx, qword [rsi]
cmp rcx, 2
jne 0x140037710
mov rsi, qword [rsp + 0xe0]
jmp 0x140037c07
lea rdx, [rsp + 0xd8]
mov qword [rdx], 5
jmp 0x140037703
mov r13, qword [rsp + 0x20]
test r13, r13
je 0x14003768e
mov r13, qword [rsp + 0x90]
mov rax, qword [rsp + 0x28]
test rax, rax
mov rdx, qword [rsp + 0x48]
je 0x1400376a5
mov rax, qword [rsp + 0xb0]
test rdx, rdx
je 0x1400376af
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xb8]
mov r9, qword [rsp + 0x78]
cmp qword [rsp + 0x38], 0
je 0x14003779b
mov r10, rbp
lea rsi, [rsp + 0x2c8]
mov rbp, qword [rsi - 8]
lea rdi, [rsp + 0xd8]
mov ecx, reloc.WS2_32.dll_recv
rep movsq qword [rdi], qword [rsi]
jmp 0x1400377a0
lea rdx, [rsp + 0xd8]
mov qword [rdx], 0x18
mov rcx, rbx
call fcn.140331a00
jmp 0x140037102
mov rax, qword [rsp + 0xe0]
movups xmm0, xmmword [rsp + 0xe8]
movaps xmmword [rsp + 0xc0], xmm0
test rcx, rcx
je 0x140037ba5
lea rdi, [rsp + 0xc0]
movaps xmm0, xmmword [rdi]
movups xmmword [rsp + 0x228], xmm0
mov qword [rsp + 0x220], rax
mov rsi, qword [rsp + 0x50]
mov rcx, rdi
mov rdx, rsi
call fcn.140002f38
cmp byte [rdi], 0
je 0x1400377f7
mov rsi, qword [rsp + 0xc8]
jmp 0x140037bfa
lea r8, [0x14033e928]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140331c90
mov rdx, rax
jmp 0x140037d99
mov r15, qword [rsp + 0xe0]
jmp 0x1400378e2
mov r10, rbp
xor ebp, ebp
mov qword [rsp + 0x1c0], r9
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x1c8], r8
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x1d0], r10
lea rdi, [rsp + 0x348]
lea rsi, [rsp + 0xd8]
mov ecx, reloc.WS2_32.dll_recv
rep movsq qword [rdi], qword [rsi]
mov cl, 1
mov dword [rsp + 0x38], ecx
xor r12d, r12d
xor esi, esi
mov rdi, qword [rsp + 0x30]
mov r13, rbp
jmp 0x14003794f
cmp byte [rsp + 0xc1], 0
je 0x140037bcf
mov al, byte [rsp + 0xc2]
movzx ecx, al
cmp ecx, 0x2c
je 0x140037875
cmp ecx, 0x5d
je 0x140037da6
cmp byte [rsp + 0x58], 0
jne 0x140037880
lea rdx, [rsp + 0xd8]
mov qword [rdx], 7
jmp 0x140037bef
movzx eax, al
cmp eax, 0x7d
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
lea rdx, [rsp + 0xd8]
jne 0x140037a9e
mov qword [rdx], reloc.WS2_32.dll_setsockopt
jmp 0x140037aa5
lea rdx, str.struct_OrderInfo_with_4_elements
xor ecx, ecx
call fcn.14033218f
jmp 0x14003758b
cmp byte [rsp + 0x58], 0
je 0x140037b59
mov byte [rsp + 0x58], 0
cmp al, 0x5d
je 0x140037be0
lea rdi, [rsp + 0xd8]
mov rcx, rdi
mov rdx, rsi
call fcn.140033ae8
cmp qword [rdi], 0
je 0x140037ace
mov rsi, qword [rsp + 0xe0]
jmp 0x140037bfa
lea rdx, [rsp + 0xd8]
mov qword [rdx], 3
jmp 0x1400378d7
lea rdx, [rsp + 0xd8]
mov qword [rdx], 8
mov rcx, rbx
call fcn.140331a00
mov r15, rax
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rdi, r15
cmp qword [rsp + 0x38], 1
jne 0x140037907
lea rcx, [rsp + 0x2b8]
call fcn.14000c629
mov rdi, r15
cmp qword [rsp + 0x48], 1
jne 0x140037919
lea rcx, [rsp + 0x68]
call fcn.1400c2f77
cmp rbp, 1
jne 0x14003792c
lea rcx, [rsp + 0xa8]
call fcn.1400c2f77
cmp rsi, 1
jne 0x14003793f
lea rcx, [rsp + 0x88]
call fcn.1400c2f77
mov esi, 1
mov r12b, 1
mov dword [rsp + 0x38], 0
inc byte [rbx + 0x30]
mov rcx, rbx
call fcn.140003072
mov rbp, rax
lea r15, [rsp + 0xe0]
mov qword [r15 - 8], rsi
mov qword [rsp + 0x30], rdi
mov qword [r15], rdi
mov qword [r15 + 8], r13
lea rax, [rsp + 0xf0]
lea rsi, [rsp + 0x348]
mov ecx, reloc.WS2_32.dll_recv
mov rdi, rax
rep movsq qword [rdi], qword [rsi]
mov rcx, qword [rsp + 0x1e8]
mov qword [rax + 0x80], rcx
mov rcx, qword [rsp + 0x20]
mov qword [rax + 0x88], rcx
mov rcx, qword [rsp + 0x1c8]
mov qword [rax + 0x90], rcx
mov rcx, qword [rsp + 0x1e0]
mov qword [rax + 0x98], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0xa0], rcx
mov rcx, qword [rsp + 0x1d0]
mov qword [rax + 0xa8], rcx
mov rcx, qword [rsp + 0x1d8]
mov qword [rax + 0xb0], rcx
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0xb8], rcx
mov rcx, qword [rsp + 0x1c0]
mov qword [rax + 0xc0], rcx
mov qword [rax + 0xc8], rbp
test r12b, r12b
je 0x140037a2b
cmp byte [rsp + 0x38], 0
jne 0x140037a45
mov edi, 1
mov sil, 1
jmp 0x140037a87
test rbp, rbp
sete sil
je 0x140037a57
mov edi, 1
mov qword [rsp + 0x30], rbp
cmp byte [rsp + 0x38], 0
je 0x140037a7f
mov rcx, r15
call fcn.14000b5a6
mov edi, 1
mov esi, r12d
jmp 0x140037a87
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x3c8]
mov r8d, 0xd0
call fcn.1403318a0
xor edi, edi
cmp byte [rsp + 0x38], 0
jne 0x140037d53
mov rcx, r15
call fcn.14000aae6
test sil, sil
je 0x140037d53
test rbp, rbp
jne 0x140037d46
jmp 0x140037d53
mov qword [rdx], reloc.WS2_32.dll_recvfrom
mov rcx, rbx
call fcn.140331a00
mov r15, rax
jmp 0x1400378ec
lea rdx, str.struct_OrderInfo_with_4_elements
mov ecx, 1
call fcn.14033218f
mov rsi, rax
jmp 0x140037c14
lea rdx, [rsp + 0xe8]
mov rax, qword [rdx - 8]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x2b0]
mov r8d, 0x88
call fcn.1403318a0
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0xa0], xmm0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb0], rax
movups xmm0, xmmword [rsp + 0x348]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x358]
mov qword [rsp + 0x90], rax
movups xmm0, xmmword [rsp + 0x220]
movaps xmmword [rsp + 0x200], xmm0
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0x210], rax
mov r15b, 1
xor r12d, r12d
xor edi, edi
jmp 0x140037c2e
inc qword [rsi + 0x10]
lea rdi, [rsp + 0xd8]
mov rcx, rdi
mov rdx, rsi
call fcn.140002f38
cmp byte [rdi], 0
jne 0x1400378aa
cmp byte [rsp + 0xd9], 0
je 0x140037e11
mov al, byte [rsp + 0xda]
jmp 0x140037885
mov rdi, rax
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
jmp 0x140037907
lea rdx, str.struct_OrderInfo_with_4_elements
mov ecx, 2
call fcn.14033218f
mov rsi, rax
jmp 0x140037c07
lea rdx, [rsp + 0xd8]
mov qword [rdx], 5
jmp 0x1400378d7
lea rdx, [rsp + 0xd8]
mov qword [rdx], 2
jmp 0x140037bef
lea rdx, [rsp + 0xd8]
mov qword [rdx], reloc.WS2_32.dll_setsockopt
mov rcx, rsi
call fcn.140331a00
mov rsi, rax
lea rcx, [rsp + 0x220]
call fcn.1400c2f77
lea rcx, [rsp + 0x348]
call fcn.1400c2f77
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x60]
call fcn.1400c2f77
mov edi, 1
mov r12b, 1
xor r15d, r15d
inc byte [rbx + 0x30]
mov rcx, rbx
call fcn.1400030e7
mov rsi, rax
lea r13, [rsp + 0xe0]
mov qword [r13 - 8], rdi
mov rax, qword [rsp + 0x30]
mov qword [r13], rax
lea rbp, [rsp + 0xe8]
lea rdx, [rsp + 0x2b0]
mov r8d, 0x88
mov rcx, rbp
call fcn.1403318a0
movaps xmm0, xmmword [rsp + 0xa0]
movups xmmword [rbp + 0x88], xmm0
mov rax, qword [rsp + 0xb0]
mov qword [rbp + 0x98], rax
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rbp + 0xa0], xmm0
mov rax, qword [rsp + 0x90]
mov qword [rbp + 0xb0], rax
movaps xmm0, xmmword [rsp + 0x200]
movups xmmword [rbp + 0xb8], xmm0
mov rax, qword [rsp + 0x210]
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xd0], rsi
test r12b, r12b
je 0x140037ce4
test r15b, r15b
jne 0x140037d03
mov r15b, 1
mov edi, 1
jmp 0x140037d3c
mov dword [rsp + 0x20], r15d
test rsi, rsi
sete r15b
je 0x140037d15
mov edi, 1
mov qword [rsp + 0x30], rsi
cmp byte [rsp + 0x20], 0
je 0x140037d34
mov rcx, r13
call fcn.14000b5a6
mov edi, 1
mov r15d, r12d
jmp 0x140037d3c
lea rcx, [rsp + 0x3c8]
mov r8d, 0xd0
mov rdx, rbp
call fcn.1403318a0
xor edi, edi
cmp byte [rsp + 0x20], 0
jne 0x140037d53
mov rcx, r13
call fcn.14000aae6
test rsi, rsi
je 0x140037d53
test r15b, r15b
je 0x140037d53
lea rcx, [rsp + 0x1b8]
call fcn.14000aae6
test rdi, rdi
jne 0x140037d94
lea rcx, [r14 + 0x10]
lea rdx, [rsp + 0x3c8]
mov r8d, 0xd0
call fcn.1403318a0
mov rax, qword [rsp + 0x30]
mov qword [r14 + 8], rax
mov eax, 1
mov qword [r14], rax
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.140331a38
jmp 0x140037102
lea rdx, str.struct_OrderInfo_with_4_elements
mov ecx, 3
call fcn.14033218f
jmp 0x140037bf7
lea rcx, [0x1404119af]
mov edx, 4
jmp 0x140037de4
lea rcx, [0x140411a05]
mov edx, ntohs
jmp 0x140037de4
lea rcx, [0x140411d49]
mov edx, 5
call fcn.14033225d
jmp 0x1400378df
lea rcx, [0x140411825]
mov edx, reloc.WS2_32.dll_recv
call fcn.14033225d
mov r15, rax
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
jmp 0x1400378f7
lea rdx, [rsp + 0xd8]
mov qword [rdx], 5
jmp 0x140037bef