Function at 0x140004c00
Capabilities:
Get geographical location
Terminate process

Disassembly:
push rsi
push r12
sub rsp, 0x198
mov rax, qword [0x14000e008]
xor rax, rsp
mov qword [rsp + 0x180], rax
lea rdx, [0x14000c6dc]
lea rcx, str.c:prtatibminstall.log
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x14000e638], rax
test rax, rax
je 0x140005027
lea r8, str.OK_so_now_we_are_going_to_ldap_the_user_to_which_part_of_AP_they_are_in_or_if_LA_brazil_ecador_to_get_the_paper_size_etc
mov rcx, rax
lea rdx, [0x14000c71c]
call fcn.140001010
mov rcx, qword [0x14000e638]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov edx, 0x27c
lea rcx, str.bluepages.ibm.com
call qword [sym.imp.WLDAP32.dll_Ordinal_143]
mov rsi, rax
test rax, rax
jne 0x140004c8e
xor ecx, ecx
call qword [sym.imp.WLDAP32.dll_Ordinal_13]
lea eax, [rsi - 1]
jmp 0x140004fe4
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], 3
mov edx, 0x11
mov rcx, rsi
call qword [sym.imp.WLDAP32.dll_Ordinal_211]
test eax, eax
jne 0x140005017
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WLDAP32.dll_Ordinal_88]
test eax, eax
jne 0x140005017
mov r9d, 0x80
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WLDAP32.dll_Ordinal_45]
test eax, eax
jne 0x140005017
lea r8, str._mail
mov edx, 0xff
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, [0x14000ef70]
mov edx, 0xff
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000926c]
mov edx, 0xff
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
xor r12d, r12d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x80]
mov dword [rsp + 0x48], r12d
lea rdx, str.oubluepages_oibm.com
mov qword [rsp + 0x40], r12
mov rcx, rsi
mov qword [rsp + 0x38], r12
lea r8d, [r12 + 2]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.WLDAP32.dll_Ordinal_195]
test eax, eax
je 0x140004d98
mov rcx, rsi
call qword [sym.imp.WLDAP32.dll_Ordinal_46]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140004de4
mov rcx, rdx
call qword [sym.imp.WLDAP32.dll_Ordinal_41]
jmp 0x140004ddf
lea rdx, [0x14000c6dc]
lea rcx, str.c:prtatibminstall.log
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x14000e638], rax
test rax, rax
je 0x140005027
lea r8, str.ldap_search_succeeded
mov rcx, rax
lea rdx, [0x14000c71c]
call fcn.140001010
mov rcx, qword [0x14000e638]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdx, qword [rsp + 0x60]
mov rcx, rsi
mov qword [rsp + 0x190], r15
call qword [sym.imp.WLDAP32.dll_Ordinal_36]
mov r15d, eax
test eax, eax
jne 0x140004e1f
mov rcx, rsi
call qword [sym.imp.WLDAP32.dll_Ordinal_46]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140004e15
call qword [sym.imp.WLDAP32.dll_Ordinal_41]
mov eax, 0xffffffff
jmp 0x140004fdc
mov qword [rsp + 0x1b0], rbx
mov qword [rsp + 0x1b8], rbp
mov rbp, r12
mov qword [rsp + 0x1c0], rdi
mov qword [rsp + 0x1c8], r14
mov r14d, r12d
mov qword [rsp + 0x68], r12
test r15d, r15d
je 0x140004f9e
mov rcx, rsi
test r14d, r14d
jne 0x140004e68
mov rdx, qword [rsp + 0x60]
call qword [sym.imp.WLDAP32.dll_Ordinal_26]
jmp 0x140004e71
mov rdx, rbp
call qword [sym.imp.WLDAP32.dll_Ordinal_27]
mov rbp, rax
mov rcx, rsi
test rax, rax
je 0x140004fff
lea r8, [rsp + 0x68]
mov rdx, rax
call qword [sym.imp.WLDAP32.dll_Ordinal_32]
mov rbx, rax
test rax, rax
je 0x140004f7b
nop word [rax + rax]
mov rdx, rbx
mov dword [0x14000ec60], r12d
lea rcx, str.hrCountryCode
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140004ed4
mov rdx, rbx
mov dword [0x14000ec60], 1
lea rcx, [0x14000ec70]
call fcn.140005ee0
mov rdx, rbx
lea rcx, [0x1400092b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140004f01
mov rdx, rbx
mov dword [0x14000ec60], 1
lea rcx, [0x14000ec70]
call fcn.140005ee0
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.WLDAP32.dll_Ordinal_34]
mov rdi, rax
test rax, rax
je 0x140004f55
mov rcx, rax
call qword [sym.imp.WLDAP32.dll_Ordinal_37]
test eax, eax
je 0x140004f4c
mov rdx, qword [rdi]
lea rcx, str.:_hs
call fcn.140001060
cmp dword [0x14000ec60], 1
jne 0x140004f4c
mov rdx, qword [rdi]
lea rcx, [0x14000ec70]
call fcn.140005ee0
mov rcx, rdi
call qword [sym.imp.WLDAP32.dll_Ordinal_38]
mov rcx, rbx
call qword [sym.imp.WLDAP32.dll_Ordinal_200]
mov r8, qword [rsp + 0x68]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.WLDAP32.dll_Ordinal_33]
mov rbx, rax
test rax, rax
jne 0x140004ea0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140004f8d
xor edx, edx
call qword [sym.imp.WLDAP32.dll_Ordinal_301]
inc r14d
mov qword [rsp + 0x68], r12
cmp r14d, r15d
jb 0x140004e53
mov rcx, rsi
call qword [sym.imp.WLDAP32.dll_Ordinal_13]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WLDAP32.dll_Ordinal_41]
xor ecx, ecx
call qword [sym.imp.WLDAP32.dll_Ordinal_38]
xor eax, eax
mov r14, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x1c0]
mov rbp, qword [rsp + 0x1b8]
mov rbx, qword [rsp + 0x1b0]
mov r15, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140005f50
add rsp, 0x198
pop r12
pop rsi
ret
call qword [sym.imp.WLDAP32.dll_Ordinal_46]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WLDAP32.dll_Ordinal_41]
mov eax, 0xffffffff
jmp 0x140004fbc
mov rcx, rsi
call qword [sym.imp.WLDAP32.dll_Ordinal_13]
mov eax, 0xffffffff
jmp 0x140004fe4
lea r8, str.failed_to_open_log_file_fatal_err
lea rdx, [0x140007a8c]
lea rcx, [0x14000ead0]
call fcn.140005e20
xor r9d, r9d
lea r8, str.Print_ibm_install
lea rdx, [0x14000ead0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3