Function at 0x1400040d0
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x220
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x240], rbx
mov rbx, rdx
mov rdi, rcx
lea rcx, [rsp + 0x30]
call fcn.140001150
nop
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x140004133
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x258], rax
test rax, rax
je 0x14000412a
mov rcx, rax
call fcn.140023810
jmp 0x14000412c
xor eax, eax
mov qword [0x1400ec150], rax
mov r8, rbx
lea rdx, str.GetWpsStatus__s_
mov rcx, rax
call fcn.140023be0
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400017c0
test eax, eax
jne 0x140004189
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000416f
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14000416f
call rax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000417f
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x1400043f6
mov dword [rsp + 0x250], 0
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x140004358
mov rax, qword [rsp + 0xe8]
test rax, rax
jne 0x14000420c
test rbx, rbx
je 0x1400041f1
lea rdx, str.GetApplicationStatusA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xe8], rax
test rax, rax
jne 0x14000420c
mov esi, 0x7f
mov dword [rsp + 0x30], esi
lea rcx, str.EWSIntf::get_app_status:_Function_not_found_in_DLL:_GetApplicationStatusA_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000435c
mov esi, 6
mov dword [rsp + 0x30], esi
lea rcx, str.EWSIntf::get_app_status:_Attempting_to_lookup_GetApplicationStatusA_with_no_DLL_handle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000435c
lea r8, [rsp + 0x250]
lea rdx, [0x1400b69e4]
mov rcx, rdi
call rax
test eax, eax
je 0x140004358
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x14000425e
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x258], rax
test rax, rax
je 0x140004255
mov rcx, rax
call fcn.140023810
jmp 0x140004257
xor eax, eax
mov qword [0x1400ec150], rax
mov r8d, dword [rsp + 0x250]
lea rdx, str.GetWpsStatus.get_app_status___d
mov rcx, rax
call fcn.140023be0
mov r11d, dword [rsp + 0x250]
cmp r11d, 3
jne 0x1400042aa
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140004292
mov rcx, rdi
call rax
test rbx, rbx
je 0x1400042a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 5
jmp 0x1400043f6
cmp r11d, 4
jne 0x1400042d7
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400042bf
mov rcx, rdi
call rax
test rbx, rbx
je 0x1400042cd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 2
jmp 0x1400043f6
cmp r11d, 5
jne 0x140004304
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400042ec
mov rcx, rdi
call rax
test rbx, rbx
je 0x1400042fa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 4
jmp 0x1400043f6
cmp r11d, 7
jne 0x140004331
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140004319
mov rcx, rdi
call rax
test rbx, rbx
je 0x140004327
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 3
jmp 0x1400043f6
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140004340
mov rcx, rdi
call rax
test rbx, rbx
je 0x14000434e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x1400043f6
mov esi, dword [rsp + 0x30]
or ebp, 0xffffffff
test rdi, rdi
je 0x140004388
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14000438a
lea rdx, [rsp + 0x258]
mov rcx, rdi
call rax
test eax, eax
je 0x14000438a
mov ebp, dword [rsp + 0x258]
jmp 0x14000438a
mov ebp, esi
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x1400043bd
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x20], rax
test rax, rax
je 0x1400043b4
mov rcx, rax
call fcn.140023810
jmp 0x1400043b6
xor eax, eax
mov qword [0x1400ec150], rax
lea r8, str.GetWpsStatus.get_app_status_failed
mov edx, ebp
mov rcx, rax
call fcn.140023e20
nop
test rdi, rdi
je 0x1400043e3
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400043e3
mov rcx, rdi
call rax
test rbx, rbx
je 0x1400043f1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov rbx, qword [rsp + 0x240]
add rsp, 0x220
pop rdi
pop rsi
pop rbp
ret