Function at 0x14001979f
Capabilities:
Get geographical location

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rbx, rdx
mov rsi, rcx
mov rdi, qword [rdx]
lea r14, [rsp + 0x38]
mov rcx, r14
mov rdx, rdi
call fcn.140002be7
cmp byte [r14], 0
je 0x1400197d8
mov rax, qword [rsp + 0x40]
mov qword [rsi + 8], rax
mov byte [rsi], 1
jmp 0x1400198f3
cmp byte [rsp + 0x39], 0
je 0x140019913
mov al, byte [rsp + 0x3a]
movzx ecx, al
cmp ecx, 0x2c
je 0x1400197fe
cmp ecx, 0x7d
jne 0x140019828
mov word [rsi], 0x500
jmp 0x1400198f3
cmp byte [rbx + 8], 0
jne 0x140019832
inc qword [rdi + 0x28]
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rdi
call fcn.140002be7
cmp byte [rbx], 0
je 0x140019921
mov rax, qword [rsp + 0x28]
jmp 0x1400197cc
cmp byte [rbx + 8], 0
je 0x14001993a
mov byte [rbx + 8], 0
cmp al, 0x22
jne 0x1400198fd
inc qword [rdi + 0x28]
and qword [rdi + 0x10], 0
lea rdx, [rdi + 0x18]
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r8, rdi
call fcn.1401133bf
cmp dword [rbx], 2
mov rdi, qword [rbx + 8]
jne 0x14001986f
mov qword [rsi + 8], rdi
mov al, 1
jmp 0x1400198f1
mov rbx, qword [rsp + 0x30]
lea r8, str.resultfile_idfile_unique_idwidthheightdurationthumbmime_typefile_sizestruct_Animationperformertitlestruct_AudioIdidfromkindusernamefirst_namelast_nameGroupinvite_linkpinned_messagepermissionsslow_mode_delaysticker_set_namecan_set_sticker_setcan_send_messagescan_send_media_messagescan_send_pollscan_send_other_messagescan_add_web_page_previewscan_change_infocan_invite_userscan_pin_messagesstruct_Permissionsstruct_Photolocationphone_numberuser_idvcardstruct_Contactfile_namestruct_Documentstruct_Filetextanimationoffsetstart_parametercurrencytotal_amountstruct_Invoicelongitudelatitudestruct_LocationUserchatmessage_iddateTextentitieslengthedit_dateauthor_signaturereply_markupvia_botemailshipping_addressstruct_OrderInfovariant_identifierdatahashsecretstruct_Credentialscredentialsstruct_Datafront_sideselfietranslationreverse_sidefilesunique_idsizestruct_PhotoSizeallows_multiple_answerscorrect_option_idexplanationopen_periodclose_datevoter_countstruct_Optionquestionoptionstotal_voter_countis_closedis_anonymousinvoice_payloadshipping_option_idorder_infocountry_codestatecitystreet_line1street_line2post_codestruct_Addresspointx_shifty_shiftscalestruct_MaskPositionemojiset_nametelegram_payment_charge_idprovider_payment_charge_idstruct_SuccessfulPaymentis_botlanguage_codestruct_Useraddressfoursquare_idfoursquare_typestruct_Venuestruct_Videostruct_VideoNotestruct_Voice
mov r9d, 6
mov rcx, rdi
mov rdx, rbx
call fcn.140064d09
test al, al
je 0x140019894
xor ecx, ecx
jmp 0x1400198ec
lea r8, [0x1403aa7b9]
mov r9d, listen
mov rcx, rdi
mov rdx, rbx
call fcn.140064d09
mov cl, 1
test al, al
jne 0x1400198ec
lea r8, [0x1403a92b9]
mov r9d, 0xa
mov rcx, rdi
mov rdx, rbx
call fcn.140064d09
mov cl, 2
test al, al
jne 0x1400198ec
lea r8, str.parametersstruct_Responsestruct_Response_with_4_elements
mov r9d, 0xa
mov rcx, rdi
mov rdx, rbx
call fcn.140064d09
mov cl, 4
sub cl, al
mov byte [rsi + 1], cl
xor eax, eax
mov byte [rsi], al
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx eax, al
lea rdx, [rsp + 0x20]
cmp eax, 0x7d
jne 0x140019931
mov qword [rdx], reloc.WS2_32.dll_select
jmp 0x140019946
lea rdx, [rsp + 0x20]
mov qword [rdx], 3
jmp 0x140019946
cmp byte [rsp + 0x21], 0
je 0x140019953
mov al, byte [rsp + 0x22]
jmp 0x140019836
mov qword [rdx], reloc.WS2_32.dll_recv
jmp 0x140019946
lea rdx, [rsp + 0x20]
mov qword [rdx], 8
mov rcx, rdi
call fcn.1402ddbec
jmp 0x1400197cc
lea rdx, [rsp + 0x20]
mov qword [rdx], 5
jmp 0x140019946