Function at 0x140007010
Capabilities:
Get geographical location

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1070]
mov eax, 0x1170
call fcn.140010710
sub rsp, rax
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x11b0], rbx
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rbp + 0x1060], rax
mov rbx, r9
mov r14, r8
mov qword [rsp + 0x70], r8
mov r15, rdx
mov rdi, qword [rbp + 0x10d0]
mov r13, qword [rbp + 0x10e0]
mov qword [rsp + 0x58], r13
xor esi, esi
mov qword [rsp + 0x40], rsi
lea rcx, [rbp - 0x70]
call fcn.14000ea70
nop
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x30], esi
mov byte [rbp + 0x6f0], sil
xor eax, eax
mov dword [rbp + 0x6f1], eax
mov byte [rbp + 0x6f5], al
mov word [rbp + 0x718], si
mov qword [rbp + 0x71a], rax
mov word [rbp + 0x722], ax
mov qword [rbp + 0x700], rsi
mov qword [rbp + 0x708], rsi
mov dword [rbp + 0x710], esi
mov qword [rbp + 0x6f8], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x48], rsi
lea r8, [r9 + 1]
movzx edx, byte [r9]
lea rcx, [rsp + 0x40]
call qword [sym.imp.TGenClient.dll_TD_Attach]
test eax, eax
je 0x14000718f
cmp eax, 0x66
jne 0x14000710f
lea r8, [0x140011a28]
lea rdx, [0x140012410]
jmp 0x14000717d
cmp eax, 0x1131
jne 0x140007185
or r12, 0xffffffffffffffff
nop word [rax + rax]
inc r12
cmp byte [rbx + r12], 0
jne 0x140007120
movzx eax, si
lea rdi, [rbp + 0xc60]
mov ecx, 0x100
rep stosw word [rdi], ax
mov dword [rsp + 0x34], 0x200
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
lea r8, [rbp + 0xc60]
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
lea r8, [rbp + 0xc60]
lea rdx, [0x140012438]
mov rcx, r13
call fcn.1400017c0
mov esi, 5
jmp 0x1400078ca
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.TGenClient.dll_TD_OpenMatcher]
mov esi, eax
test eax, eax
je 0x1400071c0
lea r8, str.Matcher
lea rdx, [0x1400125d0]
mov rcx, r13
call fcn.1400017c0
mov esi, 5
jmp 0x1400078ca
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rbp + 0x718]
lea rdx, str.COUNTRY
mov rcx, r15
call qword [sym.imp.SAPNWRFC.dll_RfcGetString]
test eax, eax
je 0x14000720e
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x10]
lea rdx, str.RfcGetString_Error
mov ecx, eax
call fcn.1400016d0
xor eax, eax
mov dword [rbp + 0x6f0], eax
mov word [rbp + 0x6f4], ax
lea rax, [rbp + 0x718]
or r12, 0xffffffffffffffff
mov rcx, r12
nop dword [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140007230
lea eax, [rcx + 2]
mov dword [rsp + 0x34], eax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
lea r8, [rbp + 0x6f0]
mov edx, ecx
lea rcx, [rbp + 0x718]
call qword [sym.imp.SAPNWRFC.dll_RfcSAPUCToUTF8]
test eax, eax
je 0x14000728d
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x10]
lea rdx, str.RfcSAPUCToUTF8_Error
mov ecx, eax
call fcn.1400016d0
lea r9, [rbp + 0x6f0]
mov r8, rdi
lea rdx, str._s__.2s
lea rcx, [rbp + 0x738]
call qword [sym.imp.MSVCR120.dll_sprintf]
lea r8, [rbp + 0x738]
lea rcx, [rbp - 0x70]
call fcn.140008270
test eax, eax
je 0x1400078ca
mov r8, rdi
lea rcx, [rbp - 0x70]
call fcn.140008270
mov r13d, dword [rbp - 0x68]
test eax, eax
je 0x14000730f
mov r8, rdi
lea rdx, [0x140012464]
lea rcx, [rbp + 0xe60]
call fcn.140001440
lea r8, str.strTypeU
lea rdx, [0x140012488]
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400017c0
xor esi, esi
jmp 0x140007460
xor esi, esi
mov r14d, esi
test r13d, r13d
je 0x140007456
nop dword [rax]
mov edx, r14d
lea rcx, [rbp - 0x70]
call fcn.14000f8a0
mov rsi, rax
mov rcx, qword [rax + 0x18]
mov rbx, r12
inc rbx
cmp byte [rcx + rbx], 0
jne 0x140007336
mov rax, r12
inc rax
cmp byte [rcx + rax], 0
jne 0x140007342
add eax, 2
mov dword [rsp + 0x34], eax
mov rcx, qword [rsi + 0x18]
lea rdx, [rbp + 0x760]
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rdx], al
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
test al, al
jne 0x140007360
lea rcx, [rbp + 0x760]
call qword [sym.imp.MSVCR120.dll__strupr]
xor edx, edx
movzx eax, dx
lea rdi, [rbp + 0x860]
mov ecx, 0x100
rep stosw word [rdi], ax
mov dword [rsp + 0x30], edx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
lea r8, [rbp + 0x860]
mov edx, ebx
lea rcx, [rbp + 0x760]
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
test eax, eax
je 0x1400073e2
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x10]
lea rdx, str.RfcSAPUCToUTF8_Error
mov ecx, eax
call fcn.1400016d0
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rbp + 0xa60]
lea rdx, [rbp + 0x860]
mov rcx, r15
call qword [sym.imp.SAPNWRFC.dll_RfcGetString]
test eax, eax
jne 0x14000741f
lea r8, [rbp + 0xa60]
jmp 0x140007440
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x10]
lea rdx, str.RfcGetString_Error
mov ecx, eax
call fcn.1400016d0
lea r8, [0x140011a2a]
mov rdx, rsi
call fcn.14000f8d0
inc r14d
cmp r14d, r13d
jb 0x140007320
xor esi, esi
mov rbx, qword [rsp + 0x58]
mov r14, qword [rsp + 0x70]
lea r8, [rbp + 0x10]
lea rdx, [rsp + 0x38]
mov rcx, r14
call qword [sym.imp.SAPNWRFC.dll_RfcGetRowCount]
mov edi, esi
mov dword [rsp + 0x60], esi
mov r15d, esi
mov dword [rsp + 0x50], esi
cmp dword [rsp + 0x38], 0
jbe 0x140007669
nop word [rax + rax]
lea r8, [rbp + 0x10]
mov edx, r15d
mov rcx, r14
call qword [sym.imp.SAPNWRFC.dll_RfcMoveTo]
lea rdx, [rbp + 0x10]
mov rcx, r14
call qword [sym.imp.SAPNWRFC.dll_RfcGetCurrentRow]
mov r14d, esi
test r13d, r13d
je 0x1400075ff
mov r15, rax
nop dword [rax]
mov edx, r14d
lea rcx, [rbp - 0x70]
call fcn.14000f8a0
mov rsi, rax
mov rcx, qword [rax + 0x18]
mov rbx, r12
inc rbx
cmp byte [rcx + rbx], 0
jne 0x1400074d6
mov rax, r12
inc rax
cmp byte [rcx + rax], 0
jne 0x1400074e2
add eax, 2
mov dword [rsp + 0x34], eax
mov rcx, qword [rsi + 0x18]
lea rdx, [rbp + 0x760]
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rdx], al
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
test al, al
jne 0x140007500
lea rcx, [rbp + 0x760]
call qword [sym.imp.MSVCR120.dll__strupr]
xor edx, edx
movzx eax, dx
lea rdi, [rbp + 0x860]
mov ecx, 0x100
rep stosw word [rdi], ax
mov dword [rsp + 0x30], edx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
lea r8, [rbp + 0x860]
mov edx, ebx
lea rcx, [rbp + 0x760]
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
test eax, eax
je 0x140007582
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x10]
lea rdx, str.RfcSAPUCToUTF8_Error
mov ecx, eax
call fcn.1400016d0
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rbp + 0xa60]
lea rdx, [rbp + 0x860]
mov rcx, r15
call qword [sym.imp.SAPNWRFC.dll_RfcGetString]
test eax, eax
jne 0x1400075bf
lea r8, [rbp + 0xa60]
jmp 0x1400075e0
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x10]
lea rdx, str.RfcGetString_Error
mov ecx, eax
call fcn.1400016d0
lea r8, [0x140011a2a]
mov rdx, rsi
call fcn.14000f8c0
inc r14d
cmp r14d, r13d
jb 0x1400074c0
mov r15d, dword [rsp + 0x50]
mov edi, dword [rsp + 0x60]
xor esi, esi
mov r8d, edi
lea rdx, str._5.5d
lea rcx, [rbp + 0x728]
call fcn.140001440
lea r8, [rbp + 0x728]
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x40]
call fcn.140008570
mov rbx, qword [rsp + 0x58]
test eax, eax
je 0x14000764b
lea r8, [0x140011a28]
lea rdx, [0x1400125e8]
mov rcx, rbx
call fcn.1400017c0
jmp 0x140007651
inc edi
mov dword [rsp + 0x60], edi
inc r15d
mov dword [rsp + 0x50], r15d
cmp r15d, dword [rsp + 0x38]
mov r14, qword [rsp + 0x70]
jb 0x140007490
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x40]
call fcn.140008650
mov esi, eax
test eax, eax
je 0x1400076a7
lea r8, [0x140011a28]
lea rdx, [0x1400125f0]
mov rcx, rbx
call fcn.1400017c0
mov esi, 5
jmp 0x1400078ca
mov rax, qword [rsp + 0x68]
xor r13d, r13d
test rax, rax
je 0x1400077e6
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400077e6
mov ebx, r13d
cmp qword [rax], rbx
je 0x1400077e6
mov edi, r13d
cmp qword [rdi + rdx], r13
je 0x1400077e6
mov rax, qword [rsp + 0x68]
mov rcx, qword [rdi + rax]
movzx eax, word [rcx]
cmp ax, word [0x140011a28]
je 0x1400077cd
lea rdx, [rbp + 0x708]
nop
movzx eax, word [rcx]
mov word [rdx], ax
lea rcx, [rcx + 2]
lea rdx, [rdx + 2]
test ax, ax
jne 0x140007700
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0x708]
call qword [sym.imp.MSVCR120.dll_wcstol]
lea r8, [rbp + 0x10]
mov edx, eax
mov rcx, r14
call qword [sym.imp.SAPNWRFC.dll_RfcMoveTo]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400077cd
mov rcx, qword [rdi + rdx]
lea rdx, [rbp + 0x6f8]
nop
movzx eax, word [rcx]
mov word [rdx], ax
lea rcx, [rcx + 2]
lea rdx, [rdx + 2]
test ax, ax
jne 0x140007750
lea rdx, [rbp + 0x10]
mov rcx, r14
call qword [sym.imp.SAPNWRFC.dll_RfcGetCurrentRow]
lea rcx, [rbp + 0x6f8]
mov r9, r12
nop word [rax + rax]
inc r9
cmp word [rcx + r9*2], r13w
jne 0x140007780
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x6f8]
lea rdx, str.MATCHPATTERN
mov rcx, rax
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
test eax, eax
je 0x1400077c8
mov byte [rsp + 0x20], r13b
xor r9d, r9d
lea r8, [rbp + 0x10]
lea rdx, str.RfcSetString_Error
mov ecx, eax
call fcn.1400016d0
mov rdx, qword [rsp + 0x48]
inc ebx
lea rdi, [rbx*8]
mov rax, qword [rsp + 0x68]
cmp qword [rdi + rax], r13
jne 0x1400076d5
lea r8, [rbp + 0x10]
lea rdx, [rsp + 0x38]
mov rcx, r14
call qword [sym.imp.SAPNWRFC.dll_RfcGetRowCount]
mov edi, dword [rsp + 0x38]
dec edi
js 0x1400078ca
lea rbx, [0x140012618]
lea r15, [0x140012620]
nop dword [rax]
nop word [rax + rax]
lea r8, [rbp + 0x10]
mov edx, edi
mov rcx, r14
call qword [sym.imp.SAPNWRFC.dll_RfcMoveTo]
lea rdx, [rbp + 0x10]
mov rcx, r14
call qword [sym.imp.SAPNWRFC.dll_RfcGetCurrentRow]
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9d, 0x100
lea r8, [rbp + 0x700]
lea rdx, str.MATCHPATTERN
mov rcx, rax
call qword [sym.imp.SAPNWRFC.dll_RfcGetString]
mov rcx, r13
lea rdx, [rbp + 0x700]
nop word [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [rbx + rcx*2 - 2]
jne 0x140007896
cmp rcx, 4
jne 0x140007880
jmp 0x1400078b5
mov rcx, r13
lea rdx, [rbp + 0x700]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r15 + rcx*2 - 2]
jne 0x1400078c2
cmp rcx, 4
jne 0x1400078a0
lea rdx, [rbp + 0x10]
mov rcx, r14
call qword [sym.imp.SAPNWRFC.dll_RfcDeleteCurrentRow]
dec edi
jns 0x140007820
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400078da
call qword [sym.imp.TGenClient.dll_TD_FreeIBuffer]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400078ea
call qword [sym.imp.TGenClient.dll_TD_FreeIBuffer]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140007906
call qword [sym.imp.TGenClient.dll_TD_CloseMatcher]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.TGenClient.dll_TD_Release]
nop
lea rcx, [rbp - 0x70]
call fcn.14000eaf0
mov eax, esi
mov rcx, qword [rbp + 0x1060]
xor rcx, rsp
call fcn.14000fad0
mov rbx, qword [rsp + 0x11b0]
add rsp, 0x1170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret