Function at 0x140004810
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1058]
mov eax, 0x1158
call fcn.140012410
sub rsp, rax
mov rax, qword [0x14001a010]
xor rax, rsp
mov qword [rbp + 0x1040], rax
mov rsi, r9
mov qword [rsp + 0x70], r9
mov r14, r8
mov qword [rbp - 0x80], r8
mov r12, rdx
mov qword [rsp + 0x58], rdx
mov rdi, rcx
mov r13, qword [rbp + 0x10c0]
mov qword [rbp - 0x78], r13
mov rax, qword [rbp + 0x10d0]
mov qword [rsp + 0x78], rax
mov rax, qword [rbp + 0x10d8]
mov qword [rsp + 0x48], rax
lea rcx, [0x140020513]
call fcn.14001233c
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
lea rcx, [rbp - 0x70]
call fcn.14000ff30
nop
mov word [rsp + 0x34], r15w
movzx ebx, r15w
mov word [rsp + 0x3c], bx
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
lea r9, [rbp + 0x10]
lea r8, [rsp + 0x68]
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 + 0x60]
call qword [sym.imp.TGenClient.dll_TD_Attach]
mov r15d, eax
test eax, eax
je 0x140004941
cmp eax, 0x66
jne 0x140004917
lea r8, [0x140013ae8]
lea rdx, [0x140014470]
mov rcx, qword [rsp + 0x48]
call fcn.1400017f0
mov r15d, 5
jmp 0x14000517f
cmp eax, 0x1131
jne 0x140004936
lea r8, str.Cleanser
lea rdx, [0x140014498]
mov rcx, qword [rsp + 0x48]
call fcn.1400017f0
mov r15d, 5
jmp 0x14000517f
mov ecx, 1
xor r14d, r14d
mov edi, r14d
mov dword [rsp + 0x44], r14d
mov rdx, qword [rbp + 0x10c8]
nop dword [rax + rax]
mov eax, edi
cmp byte [rax + rdx], 0x58
jne 0x1400050e2
test ecx, ecx
jne 0x140004979
lea rcx, [rbp - 0x70]
call fcn.140010ee0
test edi, edi
jne 0x1400049b2
mov r9, rsi
mov r8, r13
lea rdx, str._s__.2s
lea rcx, [rbp + 0x710]
call fcn.140001220
lea r8, [rbp + 0x710]
lea rcx, [rbp - 0x70]
call fcn.140007ff0
mov dword [rsp + 0x40], eax
test eax, eax
je 0x140004a35
mov qword [rsp + 0x20], rsi
mov r9d, edi
mov r8, r13
lea rdx, str._s_d__.2s
lea rcx, [rbp + 0x710]
call fcn.140001220
lea r8, [rbp + 0x710]
lea rcx, [rbp - 0x70]
call fcn.140007ff0
mov dword [rsp + 0x40], eax
test eax, eax
je 0x140004a35
test edi, edi
jne 0x140004a00
mov r8, r13
lea rcx, [rbp - 0x70]
call fcn.140007ff0
mov dword [rsp + 0x40], eax
test eax, eax
je 0x140004a35
mov r9d, edi
mov r8, r13
lea rdx, str._s_d
lea rcx, [rbp + 0x710]
call fcn.140001220
lea r8, [rbp + 0x710]
lea rcx, [rbp - 0x70]
call fcn.140007ff0
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x1400050f2
xor r15d, r15d
mov r14d, r15d
mov r13d, dword [rbp - 0x68]
test r13d, r13d
je 0x140004ba2
nop dword [rax + rax]
mov edx, r14d
lea rcx, [rbp - 0x70]
call fcn.140010e20
mov rsi, rax
mov rcx, qword [rax + 0x18]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rcx + rbx], r15b
jne 0x140004a70
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r15b
jne 0x140004a80
add eax, 2
mov dword [rsp + 0x38], eax
mov rcx, qword [rsi + 0x18]
lea rdx, [rbp + 0x940]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx], al
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
test al, al
jne 0x140004aa0
lea rcx, [rbp + 0x940]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strupr]
movzx eax, r15w
lea rdi, [rbp + 0x740]
mov ecx, 0x100
rep stosw word [rdi], ax
mov dword [rsp + 0x30], r15d
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x740]
mov edx, ebx
lea rcx, [rbp + 0x940]
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
test eax, eax
je 0x140004b22
mov byte [rsp + 0x20], r15b
xor r9d, r9d
lea r8, [rbp + 0x10]
lea rdx, str.RfcSAPUCToUTF8_Error
mov ecx, eax
call fcn.1400016f0
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rbp + 0xa40]
lea rdx, [rbp + 0x740]
mov rcx, r12
call qword [sym.imp.SAPNWRFC.dll_RfcGetString]
test eax, eax
jne 0x140004b5f
lea r8, [rbp + 0xa40]
jmp 0x140004b80
mov byte [rsp + 0x20], r15b
xor r9d, r9d
lea r8, [rbp + 0x10]
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 0x140004a50
mov edi, dword [rsp + 0x44]
mov rsi, qword [rsp + 0x70]
movzx ebx, word [rsp + 0x3c]
lea r8, [rsp + 0x34]
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x60]
call fcn.140008130
mov r15d, eax
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x140005118
movzx r12d, word [rsp + 0x34]
test r12w, r12w
je 0x140004f17
movzx eax, di
shl ax, 2
lea ecx, [rax + rdi]
add cx, cx
add r12w, cx
mov word [rsp + 0x34], r12w
movzx edi, r12w
lea rdx, [rbp + 0x10]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.SAPNWRFC.dll_RfcAppendNewRow]
mov rbx, rax
mov r8d, edi
lea rdx, [0x140013a88]
lea rcx, [rbp + 0x6f0]
call fcn.140001600
lea rax, [rbp + 0x6f0]
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140004c25
mov dword [rsp + 0x30], ecx
lea rax, [rbp + 0x10]
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 + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x140013b30]
lea rdx, str.MSG_TYPE
mov rcx, rbx
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
lea r8, [rbp + 0x6f0]
lea rdx, str.MSG_NUMBER
mov rcx, rbx
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
lea rax, [rbp + 0x10]
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.0x140004cf1.2
cdqe
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x51e0]
mov ecx, dword [rdx + rax*4 + 0x51c0]
add rcx, rdx
jmp rcx
mov r9d, 5
lea r8, str.CITY1
lea rdx, str.FIELDNAME
mov rcx, rbx
jmp 0x140004f30
mov r9d, 0xa
lea r8, str.HOUSE_NUM1
lea rdx, str.FIELDNAME
mov rcx, rbx
jmp 0x140004f30
mov dword [rsp + 0x30], 0xa
mov r9d, 0xa
lea r8, str.PO_BOX_LOC
lea rdx, str.FIELDNAME
mov rcx, rbx
jmp 0x140004f30
mov r9d, 6
lea r8, str.PO_BOX
lea rdx, str.FIELDNAME
mov rcx, rbx
jmp 0x140004f30
mov rdx, 0xffffffffffffffff
mov r10, qword [rbp - 0x80]
inc rdx
cmp byte [r10 + rdx], 0
jne 0x140004d76
xor r14d, r14d
movzx eax, r14w
lea rdi, [rbp + 0x740]
mov ecx, 0x200
rep stosw word [rdi], ax
mov dword [rsp + 0x38], 0x200
mov dword [rsp + 0x30], r14d
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x740]
mov rcx, r10
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
lea rax, [rbp + 0x740]
mov r9, 0xffffffffffffffff
nop dword [rax]
inc r9
cmp word [rax + r9*2], r14w
jne 0x140004de0
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x740]
lea rdx, str.MSG_VAR1
mov rcx, rbx
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
jmp 0x140004f42
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rsi + rdx], 0
jne 0x140004e16
xor r14d, r14d
movzx eax, r14w
lea rdi, [rbp + 0x740]
mov ecx, 0x200
rep stosw word [rdi], ax
mov dword [rsp + 0x38], 0x200
mov dword [rsp + 0x30], r14d
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x740]
mov rcx, rsi
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
lea rax, [rbp + 0x740]
mov r9, 0xffffffffffffffff
nop dword [rax + rax]
inc r9
cmp word [rax + r9*2], r14w
jne 0x140004e80
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x740]
lea rdx, str.MSG_VAR1
mov rcx, rbx
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
jmp 0x140004f42
mov rax, qword [rsp + 0x78]
mov r8d, dword [rax]
lea rdx, [0x140013a88]
lea rcx, [rbp + 0x700]
call fcn.140001600
lea rax, [rbp + 0x700]
mov r9, 0xffffffffffffffff
nop dword [rax + rax]
inc r9
cmp word [rax + r9*2], 0
jne 0x140004ee0
lea r8, [rbp + 0x700]
lea rdx, str.MSG_VAR1
mov rcx, rbx
jmp 0x140004f30
mov r9d, 6
lea r8, str.STREET
lea rdx, str.FIELDNAME
mov rcx, rbx
jmp 0x140004f30
mov r9d, 1
lea r8, [0x140014578]
lea rdx, str.CHCKSTATUS
mov rcx, qword [rsp + 0x58]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
xor r14d, r14d
test r13d, r13d
je 0x1400050b3
mov r12, qword [rsp + 0x58]
xor r15d, r15d
mov edx, r14d
lea rcx, [rbp - 0x70]
call fcn.140010e20
mov rsi, rax
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x14000509c
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], r15b
jne 0x140004f76
test rcx, rcx
je 0x14000509c
mov rcx, qword [rax + 0x18]
mov rbx, 0xffffffffffffffff
lea rbx, [rbx + 1]
cmp byte [rcx + rbx], r15b
jne 0x140004f93
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r15b
jne 0x140004fa4
inc eax
mov dword [rsp + 0x38], eax
mov rcx, qword [rsi + 0x18]
lea rdx, [rbp + 0x940]
nop
movzx eax, byte [rcx]
mov byte [rdx], al
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
test al, al
jne 0x140004fc0
lea rcx, [rbp + 0x940]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strupr]
movzx eax, r15w
lea rdi, [rbp + 0x740]
mov ecx, 0x100
rep stosw word [rdi], ax
mov dword [rsp + 0x30], r15d
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x740]
lea edx, [rbx + 1]
lea rcx, [rbp + 0x940]
call qword [sym.imp.SAPNWRFC.dll_RfcUTF8ToSAPUC]
test eax, eax
je 0x140005043
mov byte [rsp + 0x20], r15b
xor r9d, r9d
lea r8, [rbp + 0x10]
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], r15w
jne 0x140005050
mov dword [rsp + 0x30], eax
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsi + 0x48]
lea rdx, [rbp + 0x740]
mov rcx, r12
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
test eax, eax
je 0x14000509c
mov byte [rsp + 0x20], r15b
xor r9d, r9d
lea r8, [rbp + 0x10]
lea rdx, str.RfcSetString_Error
mov ecx, eax
call fcn.1400016f0
inc r14d
cmp r14d, r13d
jb 0x140004f53
mov r15d, dword [rsp + 0x50]
movzx r12d, word [rsp + 0x34]
movzx ebx, word [rsp + 0x3c]
test bx, bx
cmove bx, r12w
mov word [rsp + 0x3c], bx
mov edi, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x70]
mov r13, qword [rbp - 0x78]
mov rdx, qword [rbp + 0x10c8]
inc edi
mov dword [rsp + 0x44], edi
cmp edi, 2
jae 0x140005154
jmp 0x140004960
mov r8, r13
lea rdx, [0x1400144c4]
lea rcx, [rbp + 0xe40]
call fcn.140001600
lea r8, str.strTypeU
lea rdx, [0x1400144e8]
jmp 0x140005144
mov rax, qword [rsp + 0x78]
mov dword [rax], r15d
mov r8d, r15d
lea rdx, [0x140013a88]
lea rcx, [rbp + 0xc40]
call fcn.140001600
lea r8, [rbp + 0xc40]
lea rdx, [0x1400144f8]
mov rcx, qword [rsp + 0x48]
call fcn.1400017f0
mov r15d, 5
test bx, bx
je 0x14000517f
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x1400145c0]
lea rdx, str.CHCKSTATUS
mov rcx, r12
call qword [sym.imp.SAPNWRFC.dll_RfcSetString]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140005190
call qword [sym.imp.TGenClient.dll_TD_Release]
nop
lea rcx, [rbp - 0x70]
call fcn.14000ffe0
mov eax, r15d
mov rcx, qword [rbp + 0x1040]
xor rcx, rsp
call fcn.1400110e0
add rsp, 0x1158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret