Function at 0x140005570
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140024450]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, rcx
lea rcx, str._PI_EXE__Enter_OpenLoginUI
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebp, 1
mov dword [0x140026d00], ebp
lea rcx, str._PI_EXE__Enter_OpenLoginUI___m_OpeningUI_is_TRUE
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor r12d, r12d
mov r15, r12
test r14, r14
jne 0x1400055e4
xor eax, eax
jmp 0x1400059d5
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400059b8
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x40]
or rsi, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x14000565e
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.140001140
test rax, rax
je 0x140005764
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140009760
mov rbx, qword [rsp + 0x20]
jmp 0x140005764
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x1400056d7
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140005764
cmp dword [rdx + 0x10], eax
jge 0x1400056aa
cmp dword [rbx - 0xc], eax
jge 0x14000569d
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x140005764
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400056c0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
jmp 0x140005764
mov r13d, dword [rbx - 0x10]
lea r12, [rsp + 0x40]
sub r12, rbx
sar r12, 1
mov ecx, ebp
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140005705
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140008cc0
mov rbx, qword [rsp + 0x20]
cmp r12, r13
ja 0x140005729
movsxd rax, edi
lea r13, [rax + rax]
lea r8, [rbx + r12*2]
movsxd rdx, dword [rbx - 0xc]
add rdx, rdx
mov r9, r13
mov rcx, rbx
call fcn.14000a250
jmp 0x140005747
movsxd rax, edi
lea r13, [rax + rax]
movsxd rdx, dword [rbx - 0xc]
add rdx, rdx
mov r9, r13
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.14000b440
test edi, edi
js 0x1400059ad
cmp edi, dword [rbx - 0xc]
jg 0x1400059ad
mov dword [rbx - 0x10], edi
xor r12d, r12d
mov word [r13 + rbx], r12w
movsxd rdi, dword [rbx - 0x10]
sub ebp, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or ebp, eax
jge 0x140005785
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140008cc0
mov rbx, qword [rsp + 0x20]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.14000ac4c
test edi, edi
js 0x1400059a2
cmp edi, dword [rbx - 0xc]
jg 0x1400059a2
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], r12w
cmp dword [rbx - 0x10], 0
jge 0x1400057b6
mov eax, esi
jmp 0x1400057d4
lea rdx, str.pi.exe
mov rcx, rbx
call fcn.14000b228
test rax, rax
jne 0x1400057ce
mov eax, esi
jmp 0x1400057d4
sub rax, rbx
sar rax, 1
mov r8d, eax
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.140006d60
nop
lea r8, str.ua.dll
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140006e00
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140005855
cmp dword [rbx + 0x10], 0
jl 0x140005846
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140005846
call fcn.140008d20
mov rdi, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14000583b
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x20], rax
jmp 0x140005855
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.140008bd0
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140005875
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140005894
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
jne 0x1400058ec
lea r8, str.xu.dll
lea rdx, str.ua.dll
lea rcx, [rsp + 0x20]
call fcn.140006830
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
jne 0x1400058ec
mov rdx, rdi
lea rcx, str._PI_EXE__Fail_to_LoadLibrary__s_
call fcn.140004590
jmp 0x140005988
lea rdx, str.AsyncLoadConfirmationDlg
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000590b
mov rcx, r14
call rax
mov r15, rax
jmp 0x14000597e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, str.xu.dll
lea rdx, str.ua.dll
lea rcx, [rsp + 0x20]
call fcn.140006830
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14000596f
lea rdx, str.AsyncLoadConfirmationDlg
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140005961
mov rcx, r14
call rax
mov r15, rax
jmp 0x14000597e
lea rcx, str._PI_EXE__Fail_to_GetProcAddress_LoadConfirmationDlg_
call fcn.140004590
jmp 0x14000597e
mov rdx, rdi
lea rcx, str._PI_EXE__Fail_to_LoadLibrary__s_
call fcn.140004590
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400059b8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1400059b8
mov ecx, 0x80070057
call fcn.140001000
nop
mov ecx, 0x80070057
call fcn.140001000
nop
mov dword [0x140026d00], r12d
inc dword [0x140026d20]
lea rcx, str._PI_EXE__Enter_OpenLoginUI___m_OpeningUI_is_FALSE
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rax, r15
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000a210
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret