Function at 0x1400128b0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x370
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14012ce40]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rbx, rdx
mov rdi, rcx
xor r13d, r13d
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x140012923
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140012919
mov rcx, rax
call fcn.140050830
jmp 0x14001291c
mov rax, r13
mov qword [0x1401370f0], rax
mov r8, rbx
lea rdx, str.StartWPSNew__s_
mov rcx, rax
call fcn.140050c00
lea rcx, [rsp + 0x60]
call fcn.140006910
nop
mov r8, rbx
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140008580
test eax, eax
jne 0x140012984
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14001296d
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x14001296d
call rax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001297d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x140012c16
mov ebp, 1
mov dword [rsp + 0x2d0], r13d
xor edx, edx
mov r8d, MsiSetInternalUI
lea rcx, [rsp + 0x2d4]
call fcn.1400b57e0
mov qword [rsp + 0x298], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x290], r13
mov byte [rsp + 0x280], 0
mov qword [rsp + 0x2c0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2b8], r13
mov byte [rsp + 0x2a8], 0
mov qword [rsp + 0x270], 7
mov qword [rsp + 0x268], r13
mov word [rsp + 0x258], 0
xor r8d, r8d
lea edx, [rbp + 0x2e]
lea rcx, [rsp + 0x250]
call fcn.1400156c0
lea rcx, [rsp + 0x258]
mov rdx, qword [rsp + 0x270]
cmp rdx, 8
cmovae rcx, qword [rsp + 0x258]
add rdx, rdx
lea r9d, [rbp + 0x5d]
lea r8, str._IoMgmt_Adapters_wifi0_WPS_PushButtonSessions_1
call fcn.1400b09f0
mov qword [rsp + 0x268], getservbyport
lea rax, [rsp + 0x258]
cmp qword [rsp + 0x270], 8
cmovae rax, qword [rsp + 0x258]
mov word [rax + 0x5e], 0
lea r12, [rsp + 0x280]
cmp qword [rsp + 0x298], 0x10
cmovae r12, qword [rsp + 0x280]
lea r8, [rsp + 0x258]
cmp qword [rsp + 0x270], 8
cmovae r8, qword [rsp + 0x258]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140007120
nop
cmp qword [rax + 0x20], 0x10
jb 0x140012abc
mov rsi, qword [rax + 8]
jmp 0x140012ac0
lea rsi, [rax + 8]
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x140012b30
mov rax, qword [rsp + 0xf8]
test rax, rax
jne 0x140012b1c
test rbx, rbx
je 0x140012b0d
lea rdx, str.PostPage
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xf8], rax
test rax, rax
jne 0x140012b1c
lea rcx, str.EWSIntf::post_page:_Function_not_found_in_DLL:_PostPage_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140012b30
lea rcx, str.EWSIntf::post_page:_Attempting_to_lookup_PostPage_with_no_DLL_handle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140012b30
lea r9, [rsp + 0x2d0]
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call rax
nop
cmp qword [rsp + 0x50], 0x10
jb 0x140012b42
mov rcx, qword [rsp + 0x38]
call fcn.140084dcc
cmp dword [rsp + 0x2d4], 0xc9
cmovne ebp, r13d
cmp qword [rsp + 0x270], 8
jb 0x140012b69
mov rcx, qword [rsp + 0x258]
call fcn.140084dcc
mov qword [rsp + 0x270], 7
mov qword [rsp + 0x268], r13
mov word [rsp + 0x258], 0
cmp qword [rsp + 0x2c0], 0x10
jb 0x140012b9f
mov rcx, qword [rsp + 0x2a8]
call fcn.140084dcc
mov qword [rsp + 0x2c0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2b8], r13
mov byte [rsp + 0x2a8], 0
cmp qword [rsp + 0x298], 0x10
jb 0x140012bd3
mov rcx, qword [rsp + 0x280]
call fcn.140084dcc
mov qword [rsp + 0x298], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x290], r13
mov byte [rsp + 0x280], 0
test rdi, rdi
je 0x140012c06
mov rdx, qword [rsp + 0x98]
test rdx, rdx
je 0x140012c06
mov rcx, rdi
call rdx
test rbx, rbx
je 0x140012c14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebp
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.1400b09d0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret