Function at 0x140005490
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1098]
mov eax, 0x1198
call fcn.140010710
sub rsp, rax
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rbp + 0x1080], rax
mov r14, r9
mov qword [rsp + 0x70], r9
mov rsi, r8
mov qword [rsp + 0x60], r8
mov qword [rbp - 0x60], rdx
mov rdi, rcx
mov rax, qword [rbp + 0x1100]
mov qword [rbp - 0x70], rax
mov rbx, qword [rbp + 0x1108]
mov qword [rbp - 0x68], rbx
xor r15d, r15d
mov qword [rbp - 0x80], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x58], r15
lea rcx, [rbp - 0x50]
call fcn.14000ea70
nop
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x68], r15d
mov dword [rsp + 0x7c], r15d
mov dword [rsp + 0x4c], r15d
mov word [rbp + 0x720], r15w
xor eax, eax
mov dword [rbp + 0x722], eax
lea r8, [rdx + 1]
movzx edx, byte [rdx]
lea rcx, [rbp - 0x80]
call qword [sym.imp.TGenClient.dll_TD_Attach]
mov r12d, eax
test eax, eax
je 0x140005591
cmp eax, 0x66
jne 0x140005569
lea r8, [0x140011a28]
lea rdx, [0x140012410]
jmp 0x14000557e
cmp eax, 0x1131
jne 0x140005586
lea r8, str.Cleanser
lea rdx, [0x140012438]
mov rcx, rbx
call fcn.1400017c0
mov r12d, 5
jmp 0x140005fb9
lea r9, [rbp + 0x40]
lea r8, [rsp + 0x38]
lea rdx, str.ADRC_QU2
mov rcx, rdi
call qword [sym.imp.SAPNWRFC.dll_RfcGetTable]
lea r8, [rbp + 0x40]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcGetRowCount]
lea r9, [rbp + 0x40]
lea r8, [rsp + 0x58]
lea rdx, str.ADDR_FLAGS
mov rcx, rdi
call qword [sym.imp.SAPNWRFC.dll_RfcGetTable]
lea r8, [rbp + 0x40]
lea rdx, [rsp + 0x7c]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SAPNWRFC.dll_RfcGetRowCount]
lea rdx, [rbp + 0x40]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SAPNWRFC.dll_RfcDescribeType]
lea r8, [rbp + 0x40]
lea rdx, [rsp + 0x4c]
mov rcx, rax
call qword [sym.imp.SAPNWRFC.dll_RfcGetFieldCount]
mov eax, dword [rsp + 0x68]
mov dword [rbp - 0x74], eax
mov ebx, r15d
mov dword [rsp + 0x78], ebx
test eax, eax
je 0x140005fb9
lea r8, [rbp + 0x40]
mov edx, ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcMoveTo]
lea r8, [rbp + 0x40]
mov edx, ebx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SAPNWRFC.dll_RfcMoveTo]
xor eax, eax
mov dword [rbp + 0x720], eax
mov word [rbp + 0x724], ax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rbp + 0x720]
lea rdx, str.CHECK_STREET
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SAPNWRFC.dll_RfcGetString]
test eax, eax
je 0x1400056a3
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x40]
lea rdx, str.RfcGetString_Error
mov ecx, eax
call fcn.1400016d0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rbp + 0x722]
lea rdx, str.CHECK_PO_BOX
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SAPNWRFC.dll_RfcGetString]
test eax, eax
je 0x1400056f3
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x40]
lea rdx, str.RfcGetString_Error
mov ecx, eax
call fcn.1400016d0
mov dword [rbp + 0x728], 0
lea rcx, [rbp - 0x50]
call fcn.14000f8e0
mov ecx, 1
mov dword [rsp + 0x44], ecx
mov ebx, r15d
mov dword [rsp + 0x50], ebx
cmp dword [rsp + 0x4c], 0
jbe 0x140005f9f
mov r13d, dword [rbp - 0x48]
nop word [rax + rax]
mov eax, ebx
lea r15, [rax + rax]
cmp word [rbp + r15 + 0x720], 0x58
jne 0x140005eab
test ecx, ecx
jne 0x140005760
lea rcx, [rbp - 0x50]
call fcn.14000f8e0
mov ecx, 1
mov dword [rsp + 0x44], ecx
mov r13d, dword [rbp - 0x48]
test ebx, ebx
jne 0x140005798
mov r9, rsi
mov r8, r14
lea rdx, str._s__.2s
lea rcx, [rbp + 0x750]
call qword [sym.imp.MSVCR120.dll_sprintf]
lea r8, [rbp + 0x750]
lea rcx, [rbp - 0x50]
call fcn.140008270
mov ecx, eax
mov dword [rsp + 0x44], eax
mov r13d, dword [rbp - 0x48]
test ecx, ecx
je 0x140005856
mov qword [rsp + 0x20], rsi
mov r9d, ebx
mov r8, r14
lea rdx, str._s_d__.2s
lea rcx, [rbp + 0x750]
call qword [sym.imp.MSVCR120.dll_sprintf]
lea r8, [rbp + 0x750]
lea rcx, [rbp - 0x50]
call fcn.140008270
mov ecx, eax
mov dword [rsp + 0x44], eax
test eax, eax
je 0x140005852
test ebx, ebx
jne 0x1400057ef
mov r8, r14
lea rcx, [rbp - 0x50]
call fcn.140008270
mov ecx, eax
mov dword [rsp + 0x44], eax
test ecx, ecx
je 0x140005852
mov r9d, ebx
mov r8, r14
lea rdx, str._s_d
lea rcx, [rbp + 0x750]
call qword [sym.imp.MSVCR120.dll_sprintf]
lea r8, [rbp + 0x750]
lea rcx, [rbp - 0x50]
call fcn.140008270
mov dword [rsp + 0x44], eax
test eax, eax
je 0x140005852
mov r8, r14
lea rdx, [0x140012464]
lea rcx, [rbp + 0xe80]
call fcn.140001440
lea r8, str.strTypeU
lea rdx, [0x140012488]
mov rcx, qword [rbp - 0x68]
call fcn.1400017c0
mov r13d, dword [rbp - 0x48]
xor r12d, r12d
mov r14d, r12d
test r13d, r13d
je 0x1400059af
nop word [rax + rax]
mov edx, r14d
lea rcx, [rbp - 0x50]
call fcn.14000f8a0
mov rsi, rax
mov rcx, qword [rax + 0x18]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], r12b
jne 0x140005887
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r12b
jne 0x140005894
add eax, 2
mov dword [rsp + 0x40], eax
mov rcx, qword [rsi + 0x18]
lea rdx, [rbp + 0x980]
nop
movzx eax, byte [rcx]
mov byte [rdx], al
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
test al, al
jne 0x1400058b0
lea rcx, [rbp + 0x980]
call qword [sym.imp.MSVCR120.dll__strupr]
movzx eax, r12w
lea rdi, [rbp + 0x780]
mov ecx, 0x100
rep stosw word [rdi], ax
mov dword [rsp + 0x30], r12d
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x780]
mov edx, ebx
lea rcx, [rbp + 0x980]
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
test eax, eax
je 0x140005932
mov byte [rsp + 0x20], r12b
xor r9d, r9d
lea r8, [rbp + 0x40]
lea rdx, str.RfcSAPUCToUTF8_Error
mov ecx, eax
call fcn.1400016d0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rbp + 0xc80]
lea rdx, [rbp + 0x780]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcGetString]
test eax, eax
jne 0x140005971
lea r8, [rbp + 0xc80]
jmp 0x140005992
mov byte [rsp + 0x20], r12b
xor r9d, r9d
lea r8, [rbp + 0x40]
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 0x140005870
mov ebx, dword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov word [rsp + 0x48], r12w
cmp r15, 6
jae 0x140005fb3
mov word [rbp + r15 + 0x728], r12w
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x50]
mov rcx, qword [rbp - 0x80]
call fcn.1400083c0
mov r12d, eax
mov dword [rbp - 0x78], eax
test eax, eax
jne 0x140005ec1
movzx edx, word [rsp + 0x48]
test dx, dx
je 0x140005d01
movzx eax, bx
shl ax, 2
lea ecx, [rax + rbx]
add cx, cx
add dx, cx
mov word [rbp + r15 + 0x728], dx
movzx edi, dx
mov r8d, edi
lea rdx, [0x1400118c8]
lea rcx, [rbp + 0x730]
call fcn.140001440
lea rcx, [rbp + 0x730]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x140005a33
mov dword [rsp + 0x30], eax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x12
lea r8, str._TRILLIUM_MESSAGES
lea rdx, str.MSG_ID
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x140011ab8]
lea rdx, str.MSG_TYPE
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
lea r8, [rbp + 0x730]
lea rdx, str.MSG_NUMBER
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xa
lea r8, str.ADRC_QU2
lea rdx, str.TABLENAME
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
lea eax, [rdi - 1]
cmp eax, 0x68
ja case.0x140005b07.2
cdqe
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x6018]
mov ecx, dword [rdx + rax*4 + 0x5ff8]
add rcx, rdx
jmp rcx
mov r9d, 5
lea r8, str.CITY1
lea rdx, str.FIELDNAME
jmp 0x140005d15
mov r9d, 0xa
lea r8, str.HOUSE_NUM1
lea rdx, str.FIELDNAME
jmp 0x140005d15
mov r9d, 6
lea r8, str.PO_BOX_LOC
lea rdx, str.FIELDNAME
jmp 0x140005d15
mov r9d, 6
lea r8, str.PO_BOX
lea rdx, str.FIELDNAME
jmp 0x140005d15
or rdx, 0xffffffffffffffff
mov r10, qword [rbp - 0x60]
inc rdx
cmp byte [r10 + rdx], 0
jne 0x140005b75
xor r14d, r14d
movzx eax, r14w
lea rdi, [rbp + 0x780]
mov ecx, 0x200
rep stosw word [rdi], ax
mov dword [rsp + 0x40], 0x200
mov dword [rsp + 0x30], r14d
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x780]
mov rcx, r10
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
lea rax, [rbp + 0x780]
or r9, 0xffffffffffffffff
inc r9
cmp word [rax + r9*2], r14w
jne 0x140005bd5
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x780]
lea rdx, str.MSG_VAR1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
jmp 0x140005d2c
or rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp byte [rsi + rdx], 0
jne 0x140005c10
xor r14d, r14d
movzx eax, r14w
lea rdi, [rbp + 0x780]
mov ecx, 0x200
rep stosw word [rdi], ax
mov dword [rsp + 0x40], 0x200
mov dword [rsp + 0x30], r14d
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x780]
mov rcx, rsi
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
lea rax, [rbp + 0x780]
or r9, 0xffffffffffffffff
nop
inc r9
cmp word [rax + r9*2], r14w
jne 0x140005c70
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x780]
lea rdx, str.MSG_VAR1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
jmp 0x140005d2c
mov rax, qword [rbp - 0x70]
mov r8d, dword [rax]
lea rdx, [0x1400118c8]
lea rcx, [rbp + 0x740]
call fcn.140001440
lea rax, [rbp + 0x740]
or r9, 0xffffffffffffffff
nop word [rax + rax]
inc r9
cmp word [rax + r9*2], 0
jne 0x140005cd0
lea r8, [rbp + 0x740]
lea rdx, str.MSG_VAR1
jmp 0x140005d15
mov r9d, 6
lea r8, str.STREET
lea rdx, str.FIELDNAME
jmp 0x140005d15
mov r9d, 1
lea r8, [0x140012510]
lea rdx, str.CHCKST_QU
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
xor r14d, r14d
test r13d, r13d
je 0x140005ea2
xor r12d, r12d
nop dword [rax + rax]
mov edx, r14d
lea rcx, [rbp - 0x50]
call fcn.14000f8a0
mov rsi, rax
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x140005e8e
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], r12b
jne 0x140005d60
test rcx, rcx
je 0x140005e8e
mov rcx, qword [rax + 0x18]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
lea rbx, [rbx + 1]
cmp byte [rcx + rbx], r12b
jne 0x140005d80
or rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], r12b
jne 0x140005d90
inc eax
mov dword [rsp + 0x40], eax
mov rcx, qword [rsi + 0x18]
lea rdx, [rbp + 0x980]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx], al
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
test al, al
jne 0x140005db0
lea rcx, [rbp + 0x980]
call qword [sym.imp.MSVCR120.dll__strupr]
movzx eax, r12w
lea rdi, [rbp + 0x780]
mov ecx, 0x100
rep stosw word [rdi], ax
mov dword [rsp + 0x30], r12d
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x780]
lea edx, [rbx + 1]
lea rcx, [rbp + 0x980]
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
test eax, eax
je 0x140005e33
mov byte [rsp + 0x20], r12b
xor r9d, r9d
lea r8, [rbp + 0x40]
lea rdx, str.RfcSAPUCToUTF8_Error
mov ecx, eax
call fcn.1400016d0
mov rcx, qword [rsi + 0x48]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140005e40
mov dword [rsp + 0x30], eax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsi + 0x48]
lea rdx, [rbp + 0x780]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
test eax, eax
je 0x140005e8e
mov byte [rsp + 0x20], r12b
xor r9d, r9d
lea r8, [rbp + 0x40]
lea rdx, str.RfcSetString_Error
mov ecx, eax
call fcn.1400016d0
inc r14d
cmp r14d, r13d
jb 0x140005d40
mov r12d, dword [rbp - 0x78]
mov ebx, dword [rsp + 0x50]
mov r14, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x44]
inc ebx
mov dword [rsp + 0x50], ebx
cmp ebx, dword [rsp + 0x4c]
jae 0x140005efb
mov rsi, qword [rsp + 0x60]
jmp 0x140005730
mov rax, qword [rbp - 0x70]
mov dword [rax], r12d
mov r8d, r12d
lea rdx, [0x1400118c8]
lea rcx, [rbp + 0xa80]
call fcn.140001440
lea r8, [rbp + 0xa80]
lea rdx, [0x140012490]
mov rcx, qword [rbp - 0x68]
call fcn.1400017c0
mov r12d, 5
movzx eax, word [rbp + 0x728]
test ax, ax
jne 0x140005f13
movzx eax, word [rbp + 0x72a]
test ax, ax
je 0x140005f92
movzx r8d, ax
lea rdx, [0x1400118c8]
lea rcx, [rbp + 0x730]
call fcn.140001440
lea rcx, [rbp + 0x730]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x140005f35
mov dword [rsp + 0x30], eax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x140012558]
lea rdx, str.CHCKST_QU
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
lea r8, [rbp + 0x730]
lea rdx, str.MSG_NUMBER
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x70]
xor r15d, r15d
mov ebx, dword [rsp + 0x78]
inc ebx
mov dword [rsp + 0x78], ebx
cmp ebx, dword [rbp - 0x74]
jae 0x140005fb9
jmp 0x140005622
call fcn.14000fde8
int3
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140005fc9
call qword [sym.imp.TGenClient.dll_TD_Release]
nop
lea rcx, [rbp - 0x50]
call fcn.14000eaf0
mov eax, r12d
mov rcx, qword [rbp + 0x1080]
xor rcx, rsp
call fcn.14000fad0
add rsp, 0x1198
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret