Function at 0x140007940
Capabilities:
Get geographical location

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10e0]
mov eax, 0x11e0
call fcn.140010710
sub rsp, rax
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x1220], rbx
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rbp + 0x10d0], rax
mov rdi, r9
mov rbx, r8
mov r12, rdx
mov qword [rsp + 0x70], rdx
mov r14, qword [rbp + 0x1148]
mov qword [rsp + 0x78], r14
xor r15d, r15d
mov qword [rsp + 0x48], r15
lea rcx, [rbp - 0x70]
call fcn.14000ea70
nop
mov dword [rsp + 0x50], r15d
lea rcx, [rsp + 0x58]
call qword [sym.imp.TGenClient.dll_public:_void___cdecl_MatchResults::constructor_void____ptr64]
nop
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], r15d
mov byte [rbp + 0x6f0], r15b
xor eax, eax
mov dword [rbp + 0x6f1], eax
mov byte [rbp + 0x6f5], al
mov word [rbp + 0x708], r15w
mov qword [rbp + 0x70a], rax
mov word [rbp + 0x712], ax
mov qword [rbp + 0x6f8], r15
mov dword [rbp + 0x700], r15d
lea r8, [rbx + 1]
movzx edx, byte [rbx]
lea rcx, [rsp + 0x48]
call qword [sym.imp.TGenClient.dll_TD_Attach]
test eax, eax
je 0x140007ab1
cmp eax, 0x66
jne 0x140007a39
lea r8, [0x140011a28]
lea rdx, [0x140012410]
jmp 0x140007c4b
cmp eax, 0x1131
jne 0x140007c53
or rsi, 0xffffffffffffffff
nop dword [rax + rax]
inc rsi
cmp byte [rbx + rsi], 0
jne 0x140007a50
movzx eax, r15w
lea rdi, [rbp + 0xad0]
mov ecx, 0x100
rep stosw word [rdi], ax
mov dword [rsp + 0x30], 0x200
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [rbp + 0xad0]
mov edx, esi
mov rcx, rbx
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
lea r8, [rbp + 0xad0]
lea rdx, [0x140012438]
jmp 0x140007c4b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.TGenClient.dll_TD_OpenMatcher]
mov r13d, eax
test eax, eax
je 0x140007ad6
lea r8, str.Matcher
lea rdx, [0x1400125d0]
jmp 0x140007c4b
lea r8, [rbp + 0x10]
xor edx, edx
mov rcx, r12
call qword [sym.imp.SAPNWRFC.dll_RfcMoveTo]
lea rdx, [rbp + 0x10]
mov rcx, r12
call qword [sym.imp.SAPNWRFC.dll_RfcGetCurrentRow]
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x20], rcx
mov r9d, 0x100
lea r8, [rbp + 0x708]
lea rdx, str.COUNTRY
mov rcx, rax
call qword [sym.imp.SAPNWRFC.dll_RfcGetString]
test eax, eax
je 0x140007b40
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 + 0x708]
or rsi, 0xffffffffffffffff
mov rcx, rsi
nop dword [rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140007b60
lea eax, [rcx + 2]
mov dword [rsp + 0x30], eax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x6f0]
mov edx, ecx
lea rcx, [rbp + 0x708]
call qword [sym.imp.SAPNWRFC.dll_RfcSAPUCToUTF8]
test eax, eax
je 0x140007bbd
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 + 0x750]
call qword [sym.imp.MSVCR120.dll_sprintf]
mov r8, rdi
lea rcx, [rbp - 0x70]
call fcn.140008270
lea rcx, [rbp - 0x70]
test eax, eax
je 0x140007c1e
mov r8, rdi
call fcn.140008270
test eax, eax
je 0x14000820e
mov r8, rdi
lea rdx, [0x140012464]
lea rcx, [rbp + 0xcd0]
call fcn.140001440
lea r8, str.strTypeU
jmp 0x140007c44
call fcn.14000f360
test eax, eax
je 0x140007c5e
mov r8, rdi
lea rdx, [0x140012464]
lea rcx, [rbp + 0xcd0]
call fcn.140001440
lea r8, str.Batch_Match_Update_Rules
lea rdx, [0x140012488]
mov rcx, r14
call fcn.1400017c0
mov r13d, 5
jmp 0x14000820e
mov edi, r15d
mov r15d, dword [rbp - 0x68]
test r15d, r15d
je 0x140007cce
nop word [rax + rax]
mov edx, edi
lea rcx, [rbp - 0x70]
call fcn.14000f8a0
mov r8, rax
mov rdx, qword [rax + 0x18]
mov rcx, rsi
inc rcx
cmp byte [rdx + rcx], 0
jne 0x140007c85
test rcx, rcx
je 0x140007ca3
mov rax, rsi
inc rax
cmp byte [rdx + rax], 0
jne 0x140007c96
mov dword [r8 + 0x50], eax
mov rcx, qword [r8 + 0x20]
test rcx, rcx
je 0x140007cc1
cmp byte [rcx], 0
je 0x140007cc1
lea rdx, str.MATCHER_USER_KEY
call sub.MSVCR120.dll_strcmp
test eax, eax
je 0x140007cca
inc edi
cmp edi, r15d
jae 0x140007cce
jmp 0x140007c70
mov dword [rsp + 0x50], edi
lea r8, [rbp + 0x10]
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.SAPNWRFC.dll_RfcGetRowCount]
xor esi, esi
mov r13d, esi
mov dword [rsp + 0x3c], esi
mov r15d, esi
mov dword [rsp + 0x38], esi
cmp dword [rsp + 0x40], esi
jbe 0x140007f1e
nop word [rax + rax]
lea r8, [rbp + 0x10]
mov edx, r15d
mov rcx, r12
call qword [sym.imp.SAPNWRFC.dll_RfcMoveTo]
lea rdx, [rbp + 0x10]
mov rcx, r12
call qword [sym.imp.SAPNWRFC.dll_RfcGetCurrentRow]
mov r12, rax
cmp dword [rbp - 0x68], 0
jbe 0x140007eb2
or r15, 0xffffffffffffffff
xor r13d, r13d
mov edx, esi
lea rcx, [rbp - 0x70]
call fcn.14000f8a0
mov r14, rax
mov rdi, qword [rax + 0x18]
mov rdx, rdi
lea r8, [rbp + 0x728]
sub r8, rdi
movzx ecx, byte [rdx]
mov byte [r8 + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x140007d50
lea rdx, str.MATCHER_USER_KEY
lea rcx, [rbp + 0x728]
call sub.MSVCR120.dll_strcmp
test eax, eax
je 0x140007e98
mov rbx, r15
nop dword [rax]
inc rbx
cmp byte [rdi + rbx], r13b
jne 0x140007d80
mov rax, r15
nop dword [rax]
inc rax
cmp byte [rdi + rax], r13b
jne 0x140007d90
add eax, 2
mov dword [rsp + 0x30], eax
mov rcx, qword [r14 + 0x18]
lea rdx, [rbp + 0x7d0]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx], al
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
test al, al
jne 0x140007db0
lea rcx, [rbp + 0x7d0]
call qword [sym.imp.MSVCR120.dll__strupr]
movzx eax, r13w
lea rdi, [rbp + 0x8d0]
mov ecx, 0x100
rep stosw word [rdi], ax
mov dword [rsp + 0x34], r13d
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x8d0]
mov edx, ebx
lea rcx, [rbp + 0x7d0]
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
test eax, eax
je 0x140007e32
mov byte [rsp + 0x20], r13b
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 + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rbp + 0xed0]
lea rdx, [rbp + 0x8d0]
mov rcx, r12
call qword [sym.imp.SAPNWRFC.dll_RfcGetString]
test eax, eax
jne 0x140007e6f
lea r8, [rbp + 0xed0]
jmp 0x140007e90
mov byte [rsp + 0x20], r13b
xor r9d, r9d
lea r8, [rbp + 0x10]
lea rdx, str.RfcGetString_Error
mov ecx, eax
call fcn.1400016d0
lea r8, [0x140011a2a]
mov rdx, r14
call fcn.14000f8c0
inc esi
cmp esi, dword [rbp - 0x68]
jb 0x140007d31
mov r15d, dword [rsp + 0x38]
mov r13d, dword [rsp + 0x3c]
mov r14, qword [rsp + 0x78]
mov r8d, r13d
lea rdx, str._5.5d
lea rcx, [rbp + 0x718]
call fcn.140001440
lea r8, [rbp + 0x718]
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x48]
call fcn.140008570
test eax, eax
je 0x140007ef9
lea r8, [0x140011a28]
lea rdx, [0x1400125e8]
mov rcx, r14
call fcn.1400017c0
jmp 0x140007f01
inc r13d
mov dword [rsp + 0x3c], r13d
inc r15d
mov dword [rsp + 0x38], r15d
cmp r15d, dword [rsp + 0x40]
mov r12, qword [rsp + 0x70]
mov esi, 0
jb 0x140007d00
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x48]
call fcn.140008770
mov r13d, eax
mov dword [rsp + 0x3c], eax
test eax, eax
je 0x140007f5d
lea r8, [0x140011a28]
lea rdx, [0x1400125f0]
mov rcx, r14
call fcn.1400017c0
mov r13d, 5
jmp 0x14000820e
lea rcx, [rsp + 0x58]
call qword [sym.imp.TGenClient.dll_public:_int___cdecl_MatchResults::size_void_const___ptr64]
mov dword [rsp + 0x38], eax
mov r12d, esi
test eax, eax
jle 0x14000820e
mov r13d, eax
nop word [rax + rax]
mov edx, r12d
lea rcx, [rsp + 0x58]
call qword [sym.imp.TGenClient.dll_public:_class_MatchRecord____ptr64___cdecl_MatchResults::operator___int_const___ptr64]
mov rcx, rax
lea r8, [rsp + 0x68]
mov edx, dword [rsp + 0x50]
call qword [sym.imp.TGenClient.dll_public:_void___cdecl_MatchRecord::getString_int__wchar_t____ptr64____ptr64_const___ptr64]
mov r14d, esi
cmp dword [rbp - 0x68], 0
jbe 0x1400081f2
or r13, 0xffffffffffffffff
mov edx, r14d
lea rcx, [rbp - 0x70]
call fcn.14000f8a0
mov rsi, rax
mov eax, 1
mov rbx, qword [rsi + 0x20]
test rbx, rbx
je 0x1400081de
mov rdx, rbx
lea rdi, [rbp + 0x728]
sub rdi, rbx
nop
movzx ecx, byte [rdx]
mov byte [rdx + rdi], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x140007fe0
lea rdx, str.MATCHER_USER_KEY
lea rcx, [rbp + 0x728]
call sub.MSVCR120.dll_strcmp
test rbx, rbx
je 0x1400081de
cmp byte [rbx], 0
je 0x1400081de
test eax, eax
je 0x1400081de
mov edx, r12d
lea rcx, [rsp + 0x58]
call qword [sym.imp.TGenClient.dll_public:_class_MatchRecord____ptr64___cdecl_MatchResults::operator___int_const___ptr64]
mov rcx, rax
lea r8, [rsp + 0x60]
mov edx, r14d
call qword [sym.imp.TGenClient.dll_public:_void___cdecl_MatchRecord::getString_int__wchar_t____ptr64____ptr64_const___ptr64]
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp + 0x6f8]
sub rdx, rcx
nop dword [rax]
movzx eax, word [rcx]
mov word [rcx + rdx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140008050
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0x6f8]
call qword [sym.imp.MSVCR120.dll_wcstol]
lea r8, [rbp + 0x10]
mov edx, eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.SAPNWRFC.dll_RfcMoveTo]
lea rdx, [rbp + 0x10]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.SAPNWRFC.dll_RfcGetCurrentRow]
mov r15, rax
mov rcx, qword [rsi + 0x18]
mov rbx, r13
nop dword [rax]
inc rbx
cmp byte [rcx + rbx], 0
jne 0x1400080a0
mov rax, r13
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400080b0
add eax, 2
mov dword [rsp + 0x30], eax
mov rcx, qword [rsi + 0x18]
lea rdx, [rbp + 0x7d0]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx], al
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
test al, al
jne 0x1400080d0
lea rcx, [rbp + 0x7d0]
call qword [sym.imp.MSVCR120.dll__strupr]
xor esi, esi
movzx eax, si
lea rdi, [rbp + 0x8d0]
mov ecx, 0x100
rep stosw word [rdi], ax
mov dword [rsp + 0x34], esi
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x8d0]
mov edx, ebx
lea rcx, [rbp + 0x7d0]
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
test eax, eax
je 0x140008152
mov byte [rsp + 0x20], sil
xor r9d, r9d
lea r8, [rbp + 0x10]
lea rdx, str.RfcSAPUCToUTF8_Error
mov ecx, eax
call fcn.1400016d0
mov r8, qword [rsp + 0x60]
mov rax, r8
lea rdx, [rbp + 0x780]
sub rdx, r8
nop dword [rax]
nop dword [rax + rax]
movzx ecx, word [rax]
mov word [rax + rdx], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140008170
lea rax, [rbp + 0x780]
mov r9, r13
nop word [rax + rax]
inc r9
cmp word [rax + r9*2], si
jne 0x140008190
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x8d0]
mov rcx, r15
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
test eax, eax
je 0x1400081d1
mov byte [rsp + 0x20], sil
xor r9d, r9d
lea r8, [rbp + 0x10]
lea rdx, str.RfcSetString_Error
mov ecx, eax
call fcn.1400016d0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.TGenClient.dll_TD_FreeIString]
jmp 0x1400081e0
xor esi, esi
inc r14d
cmp r14d, dword [rbp - 0x68]
jb 0x140007fb1
mov r13d, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.TGenClient.dll_TD_FreeIString]
inc r12d
cmp r12d, r13d
jl 0x140007f80
mov r13d, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000822a
call qword [sym.imp.TGenClient.dll_TD_CloseMatcher]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.TGenClient.dll_TD_Release]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.TGenClient.dll_public:_void___cdecl_MatchResults::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x70]
call fcn.14000eaf0
mov eax, r13d
mov rcx, qword [rbp + 0x10d0]
xor rcx, rsp
call fcn.14000fad0
mov rbx, qword [rsp + 0x1220]
add rsp, 0x11e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret