Function at 0x140006680
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1218]
mov eax, 0x1318
call fcn.140010710
sub rsp, rax
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rbp + 0x1200], rax
mov rsi, r9
mov qword [rsp + 0x78], r9
mov rdi, r8
mov r15, rdx
mov qword [rsp + 0x70], rdx
mov rbx, rcx
mov rax, qword [rbp + 0x1280]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp + 0x1288]
mov qword [rbp - 0x78], rax
mov r12, qword [rbp + 0x1290]
mov qword [rbp - 0x80], r12
xor edx, edx
mov qword [rsp + 0x60], rdx
lea rcx, [rbp - 0x60]
call fcn.14000ea70
nop
mov byte [rbp + 0x720], dl
xor eax, eax
mov qword [rbp + 0x721], rax
mov qword [rbp + 0x729], rax
mov qword [rbp + 0x731], rax
mov qword [rbp + 0x739], rax
mov word [rbp + 0x741], ax
mov byte [rbp + 0x743], al
mov byte [rbp + 0x700], al
mov dword [rbp + 0x701], eax
mov byte [rbp + 0x705], al
mov word [rbp + 0x710], dx
mov qword [rbp + 0x712], rax
mov word [rbp + 0x71a], ax
mov dword [rsp + 0x50], edx
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x54], edx
mov dword [rsp + 0x40], edx
mov word [rbp + 0x708], dx
mov dword [rbp + 0x70a], eax
mov dword [rsp + 0x3c], edx
mov dword [rsp + 0x30], edx
inc r8
movzx edx, byte [rdi]
lea rcx, [rsp + 0x60]
call qword [sym.imp.TGenClient.dll_TD_Attach]
mov r14d, eax
test eax, eax
je 0x1400067d6
cmp eax, 0x66
jne 0x1400067ae
lea r8, [0x140011a28]
lea rdx, [0x140012410]
jmp 0x1400067c3
cmp eax, 0x1131
jne 0x1400067cb
lea r8, str.Cleanser
lea rdx, [0x140012438]
mov rcx, r12
call fcn.1400017c0
mov r14d, 5
jmp 0x140006fcc
lea r8, [rbp + 0x20]
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.SAPNWRFC.dll_RfcGetRowCount]
lea r9, [rbp + 0x20]
lea r8, [rsp + 0x48]
lea rdx, str.ADDR_FLAGS
mov rcx, rbx
call qword [sym.imp.SAPNWRFC.dll_RfcGetTable]
lea r8, [rbp + 0x20]
lea rdx, [rsp + 0x54]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SAPNWRFC.dll_RfcGetRowCount]
lea rdx, [rbp + 0x20]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SAPNWRFC.dll_RfcDescribeType]
lea r8, [rbp + 0x20]
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.SAPNWRFC.dll_RfcGetFieldCount]
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x68], eax
cmp eax, dword [rsp + 0x54]
je 0x14000684f
mov r14d, 0x22b
jmp 0x140006fcc
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x38], ebx
test eax, eax
je 0x140006fcc
nop
lea r8, [rbp + 0x20]
mov edx, edi
mov rcx, r15
call qword [sym.imp.SAPNWRFC.dll_RfcMoveTo]
lea r8, [rbp + 0x20]
mov edx, edi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SAPNWRFC.dll_RfcMoveTo]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rbp + 0x710]
lea rdx, str.COUNTRY
mov rcx, r15
call qword [sym.imp.SAPNWRFC.dll_RfcGetString]
test eax, eax
je 0x1400068ce
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x20]
lea rdx, str.RfcGetString_Error
mov ecx, eax
call fcn.1400016d0
xor eax, eax
mov dword [rbp + 0x700], eax
mov word [rbp + 0x704], ax
lea rax, [rbp + 0x710]
or rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x1400068f0
lea eax, [rcx + 2]
mov dword [rsp + 0x3c], eax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
lea r8, [rbp + 0x700]
mov edx, ecx
lea rcx, [rbp + 0x710]
call qword [sym.imp.SAPNWRFC.dll_RfcSAPUCToUTF8]
test eax, eax
je 0x14000694d
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x20]
lea rdx, str.RfcSAPUCToUTF8_Error
mov ecx, eax
call fcn.1400016d0
xor eax, eax
mov dword [rbp + 0x708], eax
mov word [rbp + 0x70c], ax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rbp + 0x708]
lea rdx, str.CHECK_STREET
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SAPNWRFC.dll_RfcGetString]
test eax, eax
je 0x1400069ac
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x20]
lea rdx, str.RfcGetString_Error
mov ecx, eax
call fcn.1400016d0
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rbp + 0x70a]
lea rdx, str.CHECK_PO_BOX
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SAPNWRFC.dll_RfcGetString]
test eax, eax
je 0x1400069fc
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x20]
lea rdx, str.RfcGetString_Error
mov ecx, eax
call fcn.1400016d0
lea rcx, [rbp - 0x60]
call fcn.14000f8e0
mov r12d, 1
mov dword [rsp + 0x34], r12d
mov r13d, ebx
mov dword [rsp + 0x44], ebx
cmp dword [rsp + 0x40], 0
jbe 0x140006fbc
mov r15d, dword [rbp - 0x58]
nop word [rax + rax]
mov eax, r13d
cmp word [rbp + rax*2 + 0x708], 0x58
jne 0x140006f65
test r12d, r12d
jne 0x140006a5f
lea rcx, [rbp - 0x60]
call fcn.14000f8e0
mov r12d, 1
mov dword [rsp + 0x34], r12d
mov r15d, dword [rbp - 0x58]
test r13d, r13d
jne 0x140006a9d
lea r9, [rbp + 0x700]
mov r8, rsi
lea rdx, str._s__.2s
lea rcx, [rbp + 0x720]
call qword [sym.imp.MSVCR120.dll_sprintf]
lea r8, [rbp + 0x720]
lea rcx, [rbp - 0x60]
call fcn.140008270
mov r12d, eax
mov dword [rsp + 0x34], eax
mov r15d, dword [rbp - 0x58]
test r12d, r12d
je 0x140006b6a
lea rax, [rbp + 0x700]
mov qword [rsp + 0x20], rax
mov r9d, r13d
mov r8, rsi
lea rdx, str._s_d__.2s
lea rcx, [rbp + 0x720]
call qword [sym.imp.MSVCR120.dll_sprintf]
lea r8, [rbp + 0x720]
lea rcx, [rbp - 0x60]
call fcn.140008270
mov r12d, eax
mov dword [rsp + 0x34], eax
test eax, eax
je 0x140006b66
test r13d, r13d
jne 0x140006aff
mov r8, rsi
lea rcx, [rbp - 0x60]
call fcn.140008270
mov r12d, eax
mov dword [rsp + 0x34], eax
test r12d, r12d
je 0x140006b66
mov r9d, r13d
mov r8, rsi
lea rdx, str._s_d
lea rcx, [rbp + 0x720]
call qword [sym.imp.MSVCR120.dll_sprintf]
lea r8, [rbp + 0x720]
lea rcx, [rbp - 0x60]
call fcn.140008270
mov r12d, eax
mov dword [rsp + 0x34], eax
test eax, eax
je 0x140006b66
mov r8, rsi
lea rdx, [0x140012464]
lea rcx, [rbp + 0x1000]
call fcn.140001440
lea r8, str.strTypeU
lea rdx, [0x140012488]
mov rcx, qword [rbp - 0x80]
call fcn.1400017c0
mov r15d, dword [rbp - 0x58]
mov r14d, ebx
test r15d, r15d
je 0x140006d15
mov r13, qword [rsp + 0x70]
xor r12d, r12d
nop
mov edx, r14d
lea rcx, [rbp - 0x60]
call fcn.14000f8a0
mov rsi, rax
mov rdx, qword [rax + 0x18]
lea rdi, [rbp + 0x7c0]
nop word [rax + rax]
movzx ecx, byte [rdx]
mov byte [rdi], cl
lea rdx, [rdx + 1]
lea rdi, [rdi + 1]
test cl, cl
jne 0x140006ba0
mov r8d, 6
lea rdx, str.WinKey
lea rcx, [rbp + 0x7c0]
call qword [sym.imp.MSVCR120.dll_strncmp]
test eax, eax
je 0x140006cf8
mov rcx, qword [rsi + 0x18]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rcx + rbx], r12b
jne 0x140006be0
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], r12b
jne 0x140006bf0
add eax, 2
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsi + 0x18]
lea rdx, [rbp + reloc.mfc120u.dll_Ordinal_2304]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx], al
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
test al, al
jne 0x140006c10
lea rcx, [rbp + reloc.mfc120u.dll_Ordinal_2304]
call qword [sym.imp.MSVCR120.dll__strupr]
movzx eax, r12w
lea rdi, [rbp + 0xa00]
mov ecx, 0x100
rep stosw word [rdi], ax
mov dword [rsp + 0x30], r12d
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
lea r8, [rbp + 0xa00]
mov edx, ebx
lea rcx, [rbp + reloc.mfc120u.dll_Ordinal_2304]
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
test eax, eax
je 0x140006c92
mov byte [rsp + 0x20], r12b
xor r9d, r9d
lea r8, [rbp + 0x20]
lea rdx, str.RfcSAPUCToUTF8_Error
mov ecx, eax
call fcn.1400016d0
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rbp + 0xc00]
lea rdx, [rbp + 0xa00]
mov rcx, r13
call qword [sym.imp.SAPNWRFC.dll_RfcGetString]
test eax, eax
jne 0x140006ccf
lea r8, [rbp + 0xc00]
jmp 0x140006cf0
mov byte [rsp + 0x20], r12b
xor r9d, r9d
lea r8, [rbp + 0x20]
lea rdx, str.RfcSAPUCToUTF8_Error
mov ecx, eax
call fcn.1400016d0
lea r8, [0x140011a2a]
mov rdx, rsi
call fcn.14000f8c0
inc r14d
cmp r14d, r15d
jb 0x140006b80
mov r12d, dword [rsp + 0x34]
mov r13d, dword [rsp + 0x44]
mov rsi, qword [rsp + 0x78]
xor ebx, ebx
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x60]
call fcn.1400083c0
mov r14d, eax
mov dword [rsp + 0x58], eax
test eax, eax
jne 0x140006f79
xor edx, edx
lea r8d, [rax + 0x68]
lea rcx, [rbp + 0x750]
call sub.MSVCR120.dll_memset
mov esi, ebx
test r15d, r15d
je 0x140006f60
mov r13d, dword [rsp + 0x38]
mov r14, qword [rbp - 0x70]
nop dword [rax]
mov edx, esi
lea rcx, [rbp - 0x60]
call fcn.14000f8a0
mov rbx, rax
mov rdx, qword [rax + 0x18]
lea rdi, [rbp + 0x7f0]
nop dword [rax]
movzx ecx, byte [rdx]
mov byte [rdi], cl
lea rdx, [rdx + 1]
lea rdi, [rdi + 1]
test cl, cl
jne 0x140006d80
lea rcx, [rbp + 0x7f0]
call qword [sym.imp.MSVCR120.dll__strupr]
mov eax, dword [rbp + 0x7f0]
cmp eax, dword [str.WINKEY]
jne 0x140006f49
movzx eax, word [rbp + 0x7f4]
cmp ax, word [0x140012580]
jne 0x140006f49
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140006f49
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140006dd5
test rax, rax
je 0x140006f49
mov rcx, qword [rbx + 0x48]
call fcn.140003b20
mov rcx, qword [rbx + 0x48]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140006e00
test rax, rax
je 0x140006f49
lea rdx, [rbp + 0x20]
mov rcx, r14
call qword [sym.imp.SAPNWRFC.dll_RfcAppendNewRow]
mov rdi, rax
lea r8d, [r13 + 1]
lea r9, [rbp + 0x20]
lea rdx, str.TABIX
mov rcx, rax
call qword [sym.imp.SAPNWRFC.dll_RfcSetInt]
test eax, eax
je 0x140006e59
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x20]
lea rdx, str.RfcSetInt_Error
mov ecx, eax
call fcn.1400016d0
mov rcx, qword [rbx + 0x18]
add rcx, 6
call qword [sym.imp.MSVCR120.dll_atoi]
mov r8d, eax
lea rdx, str._2.2d
lea rcx, [rbp + 0x750]
call fcn.140001440
lea rax, [rbp + 0x750]
or r9, 0xffffffffffffffff
nop dword [rax + rax]
inc r9
cmp word [rax + r9*2], 0
jne 0x140006e90
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x750]
lea rdx, str.WINDOWKEYID
mov rcx, rdi
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
test eax, eax
je 0x140006ed9
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x20]
lea rdx, str.RfcSetString_Error
mov ecx, eax
call fcn.1400016d0
mov r8, qword [rbx + 0x48]
lea rdx, str.__50s
lea rcx, [rbp + 0x750]
call fcn.140001440
lea rax, [rbp + 0x750]
or r9, 0xffffffffffffffff
nop dword [rax + rax]
inc r9
cmp word [rax + r9*2], 0
jne 0x140006f00
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x750]
lea rdx, str.WINDOWKEY
mov rcx, rdi
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
test eax, eax
je 0x140006f49
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x20]
lea rdx, str.RfcSetString_Error
mov ecx, eax
call fcn.1400016d0
inc esi
cmp esi, r15d
jb 0x140006d60
mov r14d, dword [rsp + 0x58]
mov r13d, dword [rsp + 0x44]
xor ebx, ebx
mov rsi, qword [rsp + 0x78]
inc r13d
mov dword [rsp + 0x44], r13d
cmp r13d, dword [rsp + 0x40]
jae 0x140006fb3
jmp 0x140006a30
mov rax, qword [rbp - 0x78]
mov dword [rax], r14d
mov r8d, r14d
lea rdx, [0x1400118c8]
lea rcx, [rbp + 0xe00]
call fcn.140001440
lea r8, [rbp + 0xe00]
lea rdx, [0x140012490]
mov rcx, qword [rbp - 0x80]
call fcn.1400017c0
mov r14d, 5
mov r15, qword [rsp + 0x70]
mov edi, dword [rsp + 0x38]
inc edi
mov dword [rsp + 0x38], edi
cmp edi, dword [rsp + 0x68]
jb 0x140006860
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140006fdd
call qword [sym.imp.TGenClient.dll_TD_Release]
nop
lea rcx, [rbp - 0x60]
call fcn.14000eaf0
mov eax, r14d
mov rcx, qword [rbp + 0x1200]
xor rcx, rsp
call fcn.14000fad0
add rsp, 0x1318
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret