Function at 0x140005250
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1078]
mov eax, 0x1178
call fcn.140012410
sub rsp, rax
mov rax, qword [0x14001a010]
xor rax, rsp
mov qword [rbp + 0x1060], rax
mov r14, r9
mov qword [rbp - 0x80], r9
mov qword [rsp + 0x70], r8
mov rbx, rdx
mov qword [rbp - 0x68], rdx
mov rdi, rcx
mov rax, qword [rbp + 0x10e0]
mov qword [rbp - 0x70], rax
mov r13, qword [rbp + 0x10e8]
mov qword [rsp + 0x78], r13
lea rcx, [0x140020513]
call fcn.14001233c
xor esi, esi
mov qword [rbp - 0x78], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x58], rsi
lea rcx, [rbp - 0x60]
call fcn.14000ff30
nop
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x64], esi
mov dword [rsp + 0x50], esi
xor eax, eax
mov dword [rbp + 0x708], eax
mov word [rbp + 0x70c], ax
lea r8, [rbx + 1]
movzx edx, byte [rbx]
lea rcx, [rbp - 0x78]
call qword [sym.imp.TGenClient.dll_TD_Attach]
mov r12d, eax
test eax, eax
je 0x140005388
cmp eax, 0x66
jne 0x140005326
lea r8, [0x140013ae8]
lea rdx, [0x140014470]
jmp 0x14000533b
cmp eax, 0x1131
jne 0x140005343
lea r8, str.Cleanser
lea rdx, [0x140014498]
mov rcx, r13
call fcn.1400017f0
mov r12d, 5
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140005359
call qword [sym.imp.TGenClient.dll_TD_Release]
nop
lea rcx, [rbp - 0x60]
call fcn.14000ffe0
mov eax, r12d
mov rcx, qword [rbp + 0x1060]
xor rcx, rsp
call fcn.1400110e0
add rsp, 0x1178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea r9, [rbp + 0x20]
lea r8, [rsp + 0x38]
lea rdx, str.ADRC_QU2
mov rcx, rdi
call qword [sym.imp.SAPNWRFC.dll_RfcGetTable]
lea r8, [rbp + 0x20]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcGetRowCount]
lea r9, [rbp + 0x20]
lea r8, [rsp + 0x58]
lea rdx, str.ADDR_FLAGS
mov rcx, rdi
call qword [sym.imp.SAPNWRFC.dll_RfcGetTable]
lea r8, [rbp + 0x20]
lea rdx, [rsp + 0x64]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SAPNWRFC.dll_RfcGetRowCount]
lea rdx, [rbp + 0x20]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SAPNWRFC.dll_RfcDescribeType]
lea r8, [rbp + 0x20]
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.SAPNWRFC.dll_RfcGetFieldCount]
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x6c], eax
mov r15d, esi
mov dword [rsp + 0x54], esi
test eax, eax
je 0x140005349
nop word [rax + rax]
lea r8, [rbp + 0x20]
mov edx, r15d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcMoveTo]
lea r8, [rbp + 0x20]
mov edx, r15d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SAPNWRFC.dll_RfcMoveTo]
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 + 0x58]
call qword [sym.imp.SAPNWRFC.dll_RfcGetString]
test eax, eax
je 0x1400054a3
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x20]
lea rdx, str.RfcGetString_Error
mov ecx, eax
call fcn.1400016f0
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 + 0x58]
call qword [sym.imp.SAPNWRFC.dll_RfcGetString]
test eax, eax
je 0x1400054f3
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x20]
lea rdx, str.RfcGetString_Error
mov ecx, eax
call fcn.1400016f0
movzx edi, si
mov word [rbp + 0x700], si
movzx ebx, si
mov word [rbp + 0x702], bx
lea rcx, [rbp - 0x60]
call fcn.140010ee0
mov ecx, 1
mov dword [rsp + 0x4c], esi
cmp dword [rsp + 0x50], 0
jbe 0x140005d22
nop dword [rax]
nop dword [rax + rax]
mov eax, esi
lea r15, [rax + rax]
cmp word [rbp + r15 + 0x708], 0x58
jne 0x140005cc0
test ecx, ecx
jne 0x140005553
lea rcx, [rbp - 0x60]
call fcn.140010ee0
mov rbx, qword [rsp + 0x70]
test esi, esi
jne 0x140005591
mov r9, rbx
mov r8, r14
lea rdx, str._s__.2s
lea rcx, [rbp + 0x730]
call fcn.140001220
lea r8, [rbp + 0x730]
lea rcx, [rbp - 0x60]
call fcn.140007ff0
mov dword [rsp + 0x48], eax
test eax, eax
je 0x14000563c
mov qword [rsp + 0x20], rbx
mov r9d, esi
mov r8, r14
lea rdx, str._s_d__.2s
lea rcx, [rbp + 0x730]
call fcn.140001220
lea r8, [rbp + 0x730]
lea rcx, [rbp - 0x60]
call fcn.140007ff0
mov dword [rsp + 0x48], eax
test eax, eax
je 0x14000563c
test esi, esi
jne 0x1400055df
mov r8, r14
lea rcx, [rbp - 0x60]
call fcn.140007ff0
mov dword [rsp + 0x48], eax
test eax, eax
je 0x14000563c
mov r9d, esi
mov r8, r14
lea rdx, str._s_d
lea rcx, [rbp + 0x730]
call fcn.140001220
lea r8, [rbp + 0x730]
lea rcx, [rbp - 0x60]
call fcn.140007ff0
mov dword [rsp + 0x48], eax
test eax, eax
je 0x14000563c
mov r8, r14
lea rdx, [0x1400144c4]
lea rcx, [rbp + 0xe60]
call fcn.140001600
lea r8, str.strTypeU
lea rdx, [0x1400144e8]
mov rcx, r13
call fcn.1400017f0
xor r12d, r12d
mov r14d, r12d
mov r13d, dword [rbp - 0x58]
test r13d, r13d
je 0x14000579f
nop
mov edx, r14d
lea rcx, [rbp - 0x60]
call fcn.140010e20
mov rsi, rax
mov rcx, qword [rax + 0x18]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rcx + rbx], r12b
jne 0x140005670
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r12b
jne 0x140005680
add eax, 2
mov dword [rsp + 0x40], eax
mov rcx, qword [rsi + 0x18]
lea rdx, [rbp + 0x960]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx], al
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
test al, al
jne 0x1400056a0
lea rcx, [rbp + 0x960]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strupr]
movzx eax, r12w
lea rdi, [rbp + 0x760]
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 + 0x40]
lea r8, [rbp + 0x760]
mov edx, ebx
lea rcx, [rbp + 0x960]
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
test eax, eax
je 0x140005722
mov byte [rsp + 0x20], r12b
xor r9d, r9d
lea r8, [rbp + 0x20]
lea rdx, str.RfcSAPUCToUTF8_Error
mov ecx, eax
call fcn.1400016f0
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rbp + 0xa60]
lea rdx, [rbp + 0x760]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcGetString]
test eax, eax
jne 0x140005761
lea r8, [rbp + 0xa60]
jmp 0x140005782
mov byte [rsp + 0x20], r12b
xor r9d, r9d
lea r8, [rbp + 0x20]
lea rdx, str.RfcGetString_Error
mov ecx, eax
call fcn.1400016f0
lea r8, [0x1400144f0]
mov rdx, rsi
call fcn.140010e60
inc r14d
cmp r14d, r13d
jb 0x140005650
mov esi, dword [rsp + 0x4c]
mov rbx, qword [rsp + 0x70]
mov word [rsp + 0x44], r12w
cmp r15, 6
jae 0x140005ddc
mov word [rbp + r15 + 0x700], r12w
lea r8, [rsp + 0x44]
lea rdx, [rbp - 0x60]
mov rcx, qword [rbp - 0x78]
call fcn.140008130
mov r12d, eax
mov dword [rsp + 0x68], eax
test eax, eax
jne 0x140005cd1
movzx edx, word [rsp + 0x44]
test dx, dx
je 0x140005b11
movzx eax, si
shl ax, 2
lea ecx, [rax + rsi]
add cx, cx
add dx, cx
movzx edi, dx
mov word [rbp + r15 + 0x700], dx
mov r8d, edi
lea rdx, [0x140013a88]
lea rcx, [rbp + 0x710]
call fcn.140001600
lea rcx, [rbp + 0x710]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140005830
mov dword [rsp + 0x30], eax
lea rax, [rbp + 0x20]
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 + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x140013b30]
lea rdx, str.MSG_TYPE
mov rcx, qword [rsp + 0x38]
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, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
lea rax, [rbp + 0x20]
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.0x140005904.2
cdqe
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x5e04]
mov ecx, dword [rdx + rax*4 + 0x5de4]
add rcx, rdx
jmp rcx
mov r9d, 5
lea r8, str.CITY1
lea rdx, str.FIELDNAME
jmp 0x140005b25
mov r9d, 0xa
lea r8, str.HOUSE_NUM1
lea rdx, str.FIELDNAME
jmp 0x140005b25
mov r9d, 6
lea r8, str.PO_BOX_LOC
lea rdx, str.FIELDNAME
jmp 0x140005b25
mov r9d, 6
lea r8, str.PO_BOX
lea rdx, str.FIELDNAME
jmp 0x140005b25
mov rdx, 0xffffffffffffffff
mov r10, qword [rbp - 0x68]
inc rdx
cmp byte [r10 + rdx], 0
jne 0x140005975
xor r14d, r14d
movzx eax, r14w
lea rdi, [rbp + 0x760]
mov ecx, 0x200
rep stosw word [rdi], ax
mov dword [rsp + 0x40], 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 + 0x40]
lea r8, [rbp + 0x760]
mov rcx, r10
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
lea rax, [rbp + 0x760]
mov r9, 0xffffffffffffffff
nop dword [rax + rax]
inc r9
cmp word [rax + r9*2], r14w
jne 0x1400059e0
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x760]
lea rdx, str.MSG_VAR1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
jmp 0x140005b3c
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], 0
jne 0x140005a20
xor r14d, r14d
movzx eax, r14w
lea rdi, [rbp + 0x760]
mov ecx, 0x200
rep stosw word [rdi], ax
mov dword [rsp + 0x40], 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 + 0x40]
lea r8, [rbp + 0x760]
mov rcx, rbx
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
lea rax, [rbp + 0x760]
mov r9, 0xffffffffffffffff
inc r9
cmp word [rax + r9*2], r14w
jne 0x140005a82
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x760]
lea rdx, str.MSG_VAR1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
jmp 0x140005b3c
mov rax, qword [rbp - 0x70]
mov r8d, dword [rax]
lea rdx, [0x140013a88]
lea rcx, [rbp + 0x720]
call fcn.140001600
lea rax, [rbp + 0x720]
mov r9, 0xffffffffffffffff
nop dword [rax + rax]
inc r9
cmp word [rax + r9*2], 0
jne 0x140005ae0
lea r8, [rbp + 0x720]
lea rdx, str.MSG_VAR1
jmp 0x140005b25
mov r9d, 6
lea r8, str.STREET
lea rdx, str.FIELDNAME
jmp 0x140005b25
mov r9d, 1
lea r8, [0x140014578]
lea rdx, str.CHCKST_QU
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
xor r14d, r14d
test r13d, r13d
je 0x140005cb3
xor r12d, r12d
nop dword [rax + rax]
mov edx, r14d
lea rcx, [rbp - 0x60]
call fcn.140010e20
mov rsi, rax
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x140005c9e
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], r12b
jne 0x140005b73
test rcx, rcx
je 0x140005c9e
mov rcx, qword [rax + 0x18]
mov rbx, 0xffffffffffffffff
lea rbx, [rbx + 1]
cmp byte [rcx + rbx], r12b
jne 0x140005b90
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r12b
jne 0x140005ba1
inc eax
mov dword [rsp + 0x40], eax
mov rcx, qword [rsi + 0x18]
lea rdx, [rbp + 0x960]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx], al
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
test al, al
jne 0x140005bc0
lea rcx, [rbp + 0x960]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strupr]
movzx eax, r12w
lea rdi, [rbp + 0x760]
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 + 0x40]
lea r8, [rbp + 0x760]
lea edx, [rbx + 1]
lea rcx, [rbp + 0x960]
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
test eax, eax
je 0x140005c43
mov byte [rsp + 0x20], r12b
xor r9d, r9d
lea r8, [rbp + 0x20]
lea rdx, str.RfcSAPUCToUTF8_Error
mov ecx, eax
call fcn.1400016f0
mov rcx, qword [rsi + 0x48]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140005c50
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 + 0x760]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
test eax, eax
je 0x140005c9e
mov byte [rsp + 0x20], r12b
xor r9d, r9d
lea r8, [rbp + 0x20]
lea rdx, str.RfcSetString_Error
mov ecx, eax
call fcn.1400016f0
inc r14d
cmp r14d, r13d
jb 0x140005b50
mov r12d, dword [rsp + 0x68]
mov esi, dword [rsp + 0x4c]
mov r13, qword [rsp + 0x78]
mov r14, qword [rbp - 0x80]
mov ecx, dword [rsp + 0x48]
inc esi
mov dword [rsp + 0x4c], esi
cmp esi, dword [rsp + 0x50]
jae 0x140005d0f
jmp 0x140005530
mov rax, qword [rbp - 0x70]
mov dword [rax], r12d
mov r8d, r12d
lea rdx, [0x140013a88]
lea rcx, [rbp + 0xc60]
call fcn.140001600
lea r8, [rbp + 0xc60]
lea rdx, [0x1400144f8]
mov r13, qword [rsp + 0x78]
mov rcx, r13
call fcn.1400017f0
mov r12d, 5
mov r15d, dword [rsp + 0x54]
movzx edi, word [rbp + 0x700]
movzx ebx, word [rbp + 0x702]
test di, di
jne 0x140005d3c
test bx, bx
je 0x140005dbe
movzx edi, bx
test bx, bx
je 0x140005dbe
movzx r8d, di
lea rdx, [0x140013a88]
lea rcx, [rbp + 0x710]
call fcn.140001600
lea rcx, [rbp + 0x710]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x140005d61
mov dword [rsp + 0x30], eax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x1400145c0]
lea rdx, str.CHCKST_QU
mov rcx, qword [rsp + 0x38]
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, qword [rsp + 0x38]
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
inc r15d
mov dword [rsp + 0x54], r15d
cmp r15d, dword [rsp + 0x6c]
jae 0x140005349
mov r14, qword [rbp - 0x80]
xor esi, esi
jmp 0x140005420
call fcn.140011310
int3