Function at 0x140004a80
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1068]
mov eax, 0x1168
call fcn.140010710
sub rsp, rax
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rbp + 0x1050], rax
mov rsi, r9
mov qword [rbp - 0x80], r9
mov r14, r8
mov qword [rbp - 0x78], r8
mov r12, rdx
mov qword [rsp + 0x50], rdx
mov rdi, rcx
mov rax, qword [rbp + 0x10d0]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0x10e0]
mov qword [rsp + 0x60], rax
mov r13, qword [rbp + 0x10e8]
mov qword [rsp + 0x68], r13
xor edx, edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x78], rdx
lea rcx, [rbp - 0x60]
call fcn.14000ea70
nop
mov word [rsp + 0x34], dx
movzx ebx, dx
mov word [rsp + 0x3c], dx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], edx
lea r9, [rbp + 0x20]
lea r8, [rsp + 0x78]
lea rdx, str.ERRORS
mov rcx, rdi
call qword [sym.imp.SAPNWRFC.dll_RfcGetTable]
lea r8, [r14 + 1]
movzx edx, byte [r14]
lea rcx, [rsp + 0x58]
call qword [sym.imp.TGenClient.dll_TD_Attach]
mov r15d, eax
test eax, eax
je 0x140004b93
cmp eax, 0x66
jne 0x140004b6b
lea r8, [0x140011a28]
lea rdx, [0x140012410]
jmp 0x140004b80
cmp eax, 0x1131
jne 0x140004b88
lea r8, str.Cleanser
lea rdx, [0x140012438]
mov rcx, r13
call fcn.1400017c0
mov r15d, 5
jmp 0x1400053ba
mov ecx, 1
mov dword [rsp + 0x40], ecx
xor r14d, r14d
mov edi, r14d
mov dword [rsp + 0x44], r14d
mov r13d, dword [rbp - 0x58]
mov rdx, qword [rbp + 0x10d8]
mov eax, edi
cmp byte [rax + rdx], 0x58
jne 0x14000531d
test ecx, ecx
jne 0x140004bd8
lea rcx, [rbp - 0x60]
call fcn.14000f8e0
mov ecx, 1
mov dword [rsp + 0x40], ecx
mov r13d, dword [rbp - 0x58]
mov r14, qword [rsp + 0x70]
test edi, edi
jne 0x140004c15
mov r9, rsi
mov r8, r14
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 ecx, eax
mov dword [rsp + 0x40], eax
mov r13d, dword [rbp - 0x58]
test ecx, ecx
je 0x140004caa
mov qword [rsp + 0x20], rsi
mov r9d, edi
mov r8, r14
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 ecx, eax
mov dword [rsp + 0x40], eax
test eax, eax
je 0x140004ca6
test edi, edi
jne 0x140004c6c
mov r8, r14
lea rcx, [rbp - 0x60]
call fcn.140008270
mov ecx, eax
mov dword [rsp + 0x40], eax
test ecx, ecx
je 0x140004ca6
mov r9d, edi
mov r8, r14
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 dword [rsp + 0x40], eax
test eax, eax
jne 0x14000532d
mov r13d, dword [rbp - 0x58]
xor r15d, r15d
mov r14d, r15d
test r13d, r13d
je 0x140004e01
nop dword [rax]
mov edx, r14d
lea rcx, [rbp - 0x60]
call fcn.14000f8a0
mov rsi, rax
mov rcx, qword [rax + 0x18]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], r15b
jne 0x140004cd7
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r15b
jne 0x140004ce4
add eax, 2
mov dword [rsp + 0x38], eax
mov rcx, qword [rsi + 0x18]
lea rdx, [rbp + 0x950]
nop
movzx eax, byte [rcx]
mov byte [rdx], al
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
test al, al
jne 0x140004d00
lea rcx, [rbp + 0x950]
call qword [sym.imp.MSVCR120.dll__strupr]
movzx eax, r15w
lea rdi, [rbp + 0x750]
mov ecx, 0x100
rep stosw word [rdi], ax
mov dword [rsp + 0x30], r15d
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x750]
mov edx, ebx
lea rcx, [rbp + 0x950]
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
test eax, eax
je 0x140004d82
mov byte [rsp + 0x20], r15b
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 + 0xa50]
lea rdx, [rbp + 0x750]
mov rcx, r12
call qword [sym.imp.SAPNWRFC.dll_RfcGetString]
test eax, eax
jne 0x140004dbf
lea r8, [rbp + 0xa50]
jmp 0x140004de0
mov byte [rsp + 0x20], r15b
xor r9d, r9d
lea r8, [rbp + 0x20]
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 0x140004cc0
mov edi, dword [rsp + 0x44]
mov rsi, qword [rbp - 0x80]
movzx ebx, word [rsp + 0x3c]
lea r8, [rsp + 0x34]
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.1400083c0
mov r15d, eax
mov dword [rsp + 0x48], eax
test eax, eax
jne 0x140005353
movzx r12d, word [rsp + 0x34]
test r12w, r12w
je 0x140005157
movzx eax, di
shl ax, 2
lea ecx, [rax + rdi]
add cx, cx
add r12w, cx
mov word [rsp + 0x34], r12w
lea rdx, [rbp + 0x20]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.SAPNWRFC.dll_RfcAppendNewRow]
mov rbx, rax
movzx edi, r12w
mov r8d, edi
lea rdx, [0x1400118c8]
lea rcx, [rbp + 0x710]
call fcn.140001440
lea rax, [rbp + 0x710]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140004e81
mov dword [rsp + 0x30], ecx
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0x12
lea r8, str._TRILLIUM_MESSAGES
lea rdx, str.MSG_ID
mov rcx, rbx
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x140011ab8]
lea rdx, str.MSG_TYPE
mov rcx, rbx
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
lea r8, [rbp + 0x710]
lea rdx, str.MSG_NUMBER
mov rcx, rbx
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0xa
lea r8, str.ADRC_STRUC
lea rdx, str.TABLENAME
mov rcx, rbx
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
lea eax, [rdi - 1]
cmp eax, 0x68
ja case.0x140004f4d.2
cdqe
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x541c]
mov ecx, dword [rdx + rax*4 + 0x53fc]
add rcx, rdx
jmp rcx
mov r9d, 5
lea r8, str.CITY1
lea rdx, str.FIELDNAME
mov rcx, rbx
jmp 0x140005170
mov r9d, 0xa
lea r8, str.HOUSE_NUM1
lea rdx, str.FIELDNAME
mov rcx, rbx
jmp 0x140005170
mov dword [rsp + 0x30], 0xa
mov r9d, 0xa
lea r8, str.PO_BOX_LOC
lea rdx, str.FIELDNAME
mov rcx, rbx
jmp 0x140005170
mov r9d, 6
lea r8, str.PO_BOX
lea rdx, str.FIELDNAME
mov rcx, rbx
jmp 0x140005170
or rdx, 0xffffffffffffffff
mov r10, qword [rbp - 0x78]
nop
inc rdx
cmp byte [r10 + rdx], 0
jne 0x140004fd0
xor r14d, r14d
movzx eax, r14w
lea rdi, [rbp + 0x750]
mov ecx, 0x200
rep stosw word [rdi], ax
mov dword [rsp + 0x38], 0x200
mov dword [rsp + 0x30], r14d
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x750]
mov rcx, r10
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
lea rax, [rbp + 0x750]
or r9, 0xffffffffffffffff
inc r9
cmp word [rax + r9*2], r14w
jne 0x140005030
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x750]
lea rdx, str.MSG_VAR1
mov rcx, rbx
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
jmp 0x140005182
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rsi + rdx], 0
jne 0x140005063
xor r14d, r14d
movzx eax, r14w
lea rdi, [rbp + 0x750]
mov ecx, 0x200
rep stosw word [rdi], ax
mov dword [rsp + 0x38], 0x200
mov dword [rsp + 0x30], r14d
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x750]
mov rcx, rsi
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
lea rax, [rbp + 0x750]
or r9, 0xffffffffffffffff
inc r9
cmp word [rax + r9*2], r14w
jne 0x1400050c2
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x750]
lea rdx, str.MSG_VAR1
mov rcx, rbx
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
jmp 0x140005182
mov rax, qword [rsp + 0x60]
mov r8d, dword [rax]
lea rdx, [0x1400118c8]
lea rcx, [rbp + 0x700]
call fcn.140001440
lea rax, [rbp + 0x700]
or r9, 0xffffffffffffffff
nop word [rax + rax]
inc r9
cmp word [rax + r9*2], 0
jne 0x140005120
lea r8, [rbp + 0x700]
lea rdx, str.MSG_VAR1
mov rcx, rbx
jmp 0x140005170
mov r9d, 6
lea r8, str.STREET
lea rdx, str.FIELDNAME
mov rcx, rbx
jmp 0x140005170
mov r9d, 1
lea r8, [0x140012510]
lea rdx, str.CHCKSTATUS
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
xor r14d, r14d
test r13d, r13d
je 0x1400052f3
mov r12, qword [rsp + 0x50]
xor r15d, r15d
mov edx, r14d
lea rcx, [rbp - 0x60]
call fcn.14000f8a0
mov rsi, rax
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x1400052dc
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], r15b
jne 0x1400051b3
test rcx, rcx
je 0x1400052dc
mov rcx, qword [rax + 0x18]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rcx + rbx], r15b
jne 0x1400051d0
inc ebx
or rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], r15b
jne 0x1400051e0
inc eax
mov dword [rsp + 0x38], eax
mov rcx, qword [rsi + 0x18]
lea rdx, [rbp + 0x950]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx], al
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
test al, al
jne 0x140005200
lea rcx, [rbp + 0x950]
call qword [sym.imp.MSVCR120.dll__strupr]
movzx eax, r15w
lea rdi, [rbp + 0x750]
mov ecx, 0x100
rep stosw word [rdi], ax
mov dword [rsp + 0x30], r15d
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x750]
mov edx, ebx
lea rcx, [rbp + 0x950]
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
test eax, eax
je 0x140005282
mov byte [rsp + 0x20], r15b
xor r9d, r9d
lea r8, [rbp + 0x20]
lea rdx, str.RfcSAPUCToUTF8_Error
mov ecx, eax
call fcn.1400016d0
mov rcx, qword [rsi + 0x48]
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140005290
mov dword [rsp + 0x30], eax
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsi + 0x48]
lea rdx, [rbp + 0x750]
mov rcx, r12
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
test eax, eax
je 0x1400052dc
mov byte [rsp + 0x20], r15b
xor r9d, r9d
lea r8, [rbp + 0x20]
lea rdx, str.RfcSetString_Error
mov ecx, eax
call fcn.1400016d0
inc r14d
cmp r14d, r13d
jb 0x140005193
mov r15d, dword [rsp + 0x48]
movzx r12d, word [rsp + 0x34]
movzx ebx, word [rsp + 0x3c]
test bx, bx
cmove bx, r12w
mov word [rsp + 0x3c], bx
mov ecx, dword [rsp + 0x40]
mov edi, dword [rsp + 0x44]
mov r12, qword [rsp + 0x50]
mov rsi, qword [rbp - 0x80]
mov rdx, qword [rbp + 0x10d8]
inc edi
mov dword [rsp + 0x44], edi
cmp edi, 2
jae 0x14000538f
jmp 0x140004bb2
mov r8, r14
lea rdx, [0x140012464]
lea rcx, [rbp + 0xe50]
call fcn.140001440
lea r8, str.strTypeU
lea rdx, [0x140012488]
jmp 0x14000537f
mov rax, qword [rsp + 0x60]
mov dword [rax], r15d
mov r8d, r15d
lea rdx, [0x1400118c8]
lea rcx, [rbp + 0xc50]
call fcn.140001440
lea r8, [rbp + 0xc50]
lea rdx, [0x140012490]
mov rcx, qword [rsp + 0x68]
call fcn.1400017c0
mov r15d, 5
test bx, bx
je 0x1400053ba
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x140012558]
lea rdx, str.CHCKSTATUS
mov rcx, r12
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400053cb
call qword [sym.imp.TGenClient.dll_TD_Release]
nop
lea rcx, [rbp - 0x60]
call fcn.14000eaf0
mov eax, r15d
mov rcx, qword [rbp + 0x1050]
xor rcx, rsp
call fcn.14000fad0
add rsp, 0x1168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret