Function at 0x407b00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420b9a
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x42e07c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x268], edi
lea eax, [ebp - 0x210]
xor ebx, ebx
push str.FN_ConnectToAppServiceAsync
push eax
mov dword [ebp - 0x264], ebx
call fcn.00401880
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x210]
add esp, 8
push eax
call esi
push 0x423484
call esi
mov eax, dword [ebp + 8]
cmp eax, 3
ja case.default.0x407b74
jmp dword [eax*4 + 0x408b0c]
mov edi, dword [edi]
mov ecx, dword [0x4325b8]
cmp edi, ecx
je 0x407ba7
test edi, edi
je 0x407b97
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [0x4325b8]
test ecx, ecx
je 0x407ba1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x4325b8], edi
push 0x58
push 0xc
call dword [sym.imp.vccorlib140.DLL_public:_static_void____cdecl_Platform::Details::Heap::Allocate_unsigned_int__unsigned_int_]
mov dword [ebp - 0x244], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040ae90
mov edi, eax
add esp, 8
mov dword [ebp - 0x244], edi
mov byte [ebp - 4], 2
lea edx, [ebp - 0x274]
mov ecx, dword [0x4325b8]
xorps xmm0, xmm0
push edx
movq qword [ebp - 0x274], xmm0
push edi
mov eax, dword [ecx]
push ecx
call dword [eax + 0x30]
test eax, eax
js 0x408a7f
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x407c0c
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 0x58
push 0xc
call dword [sym.imp.vccorlib140.DLL_public:_static_void____cdecl_Platform::Details::Heap::Allocate_unsigned_int__unsigned_int_]
mov dword [ebp - 0x244], eax
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.0040af50
mov edi, eax
add esp, 8
mov dword [ebp - 0x244], edi
mov byte [ebp - 4], 5
lea edx, [ebp - 0x274]
mov ecx, dword [0x4325b8]
xorps xmm0, xmm0
push edx
movq qword [ebp - 0x274], xmm0
push edi
mov eax, dword [ecx]
push ecx
call dword [eax + 0x38]
test eax, eax
js 0x408a85
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x407c71
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov dword [ebp - 4], 6
call fcn.00408cf0
mov edi, eax
mov dword [ebp - 0x244], edi
mov byte [ebp - 4], 8
test edi, edi
je 0x407c93
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov dword [ebp - 0x270], edi
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x407caa
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp - 0x268]
mov dword [ebp - 4], 9
mov eax, dword [eax + 4]
test eax, eax
jne 0x407d8e
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x2d8]
push eax
push 0xd
push 0x423488
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference
test eax, eax
js 0x408a8b
push dword [ebp - 0x248]
call dword [sym.imp.vccorlib140.DLL_class_Platform::Object____stdcall___abi_details::__abi_cast_String_to_Object_class_Platform::String__]
mov dword [ebp - 0x250], eax
xor esi, esi
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x254], esi
test edi, edi
je 0x407d25
mov eax, dword [edi]
lea ecx, [ebp - 0x254]
push ecx
push str.p5_rew_b
push edi
call dword [eax]
test eax, eax
js 0x408a91
mov esi, dword [ebp - 0x254]
mov dword [ebp - 0x244], esi
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x2ec]
push eax
push 7
push str.Command
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference
test eax, eax
js 0x408a97
push dword [ebp - 0x250]
push dword [ebp - 0x258]
push esi
call fcn.0040a6e0
add esp, 0xc
mov byte [ebp - 4], 0xa
test esi, esi
je 0x407d74
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x250]
test ecx, ecx
je 0x40891b
mov eax, dword [ecx]
push ecx
jmp 0x408918
cmp eax, 1
jne 0x407e2e
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x2b0]
push eax
push 0xa
push str.NewMessage
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference
test eax, eax
js 0x408a9d
push dword [ebp - 0x258]
call dword [sym.imp.vccorlib140.DLL_class_Platform::Object____stdcall___abi_details::__abi_cast_String_to_Object_class_Platform::String__]
mov esi, eax
mov dword [ebp - 0x244], esi
push str.p5_rew_b
push edi
push 0
mov byte [ebp - 4], 0xc
call fcn.00401030
add esp, 0xc
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x288]
push eax
push 7
push str.Command
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference
test eax, eax
js 0x408aa3
push esi
push dword [ebp - 0x248]
push dword [ebp - 0x250]
call fcn.0040a6e0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x250]
jmp 0x408900
cmp eax, 2
jne 0x408465
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x288]
push eax
push 9
cmp eax, 3
jne 0x4084ff
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x300]
push eax
push 0xc
push 0x4234fc
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference
test eax, eax
js 0x408acd
push dword [ebp - 0x258]
call dword [sym.imp.vccorlib140.DLL_class_Platform::Object____stdcall___abi_details::__abi_cast_String_to_Object_class_Platform::String__]
mov esi, eax
mov dword [ebp - 0x244], esi
push str.p5_rew_b
push edi
push 0
mov byte [ebp - 4], 0x20
call fcn.00401030
add esp, 0xc
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 0x21
push eax
lea eax, [ebp - 0x314]
push eax
push 7
push str.Command
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference
test eax, eax
js 0x408ad3
push esi
push dword [ebp - 0x250]
push dword [ebp - 0x248]
call fcn.0040a6e0
mov byte [ebp - 4], 0x20
jmp 0x4088fa
cmp eax, 4
jne 0x408599
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x2c4]
push eax
push 0xb
push str.ClearToasts
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference
test eax, eax
js 0x408ad9
push dword [ebp - 0x258]
call dword [sym.imp.vccorlib140.DLL_class_Platform::Object____stdcall___abi_details::__abi_cast_String_to_Object_class_Platform::String__]
mov esi, eax
mov dword [ebp - 0x244], esi
push str.p5_rew_b
push edi
push 0
mov byte [ebp - 4], 0x22
call fcn.00401030
add esp, 0xc
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp - 0x29c]
push eax
push 7
push str.Command
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference
test eax, eax
js 0x408adf
push esi
push dword [ebp - 0x254]
push dword [ebp - 0x248]
call fcn.0040a6e0
mov byte [ebp - 4], 0x22
jmp 0x4088fa
cmp eax, 5
jne 0x408865
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x29c]
push eax
push 8
push str.DeviceId
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference
test eax, eax
js 0x408ae5
push dword [ebp - 0x258]
call dword [sym.imp.vccorlib140.DLL_class_Platform::Object____stdcall___abi_details::__abi_cast_String_to_Object_class_Platform::String__]
mov esi, eax
mov dword [ebp - 0x244], esi
push str.p5_rew_b
push edi
push 0
mov byte [ebp - 4], 0x24
call fcn.00401030
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x264], ebx
push eax
lea eax, [ebp - 0x2c4]
push eax
push 7
push str.Command
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference
test eax, eax
js 0x408aeb
push esi
push dword [ebp - 0x248]
push ebx
call fcn.0040a6e0
add esp, 0xc
mov byte [ebp - 4], 9
test esi, esi
je 0x408634
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 0x4234b8
lea ecx, [ebp - 0x240]
call fcn.004017e0
push 0x423c44
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x25
call fcn.004017e0
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 0x26
push eax
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x268]
add eax, 8
push eax
call fcn.004073f0
mov byte [ebp - 4], 0x25
mov edx, dword [ebp - 0x214]
cmp edx, 8
jb 0x4086bf
mov ecx, dword [ebp - 0x228]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4086b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4086b5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041ed03
add esp, 8
cmp dword [ebp - 0x230], 0
ja 0x40872e
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x40870c
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408702
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40885f
push edx
push ecx
call fcn.0041ed03
add esp, 8
xor eax, eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
jmp 0x408a12
mov byte [ebp - 4], 0x27
lea edx, [ebp - 0x240]
cmp dword [ebp - 0x22c], 8
cmovae edx, dword [ebp - 0x240]
call fcn.00403c70
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 0x29
test eax, eax
je 0x408782
lea ecx, [ebp - 0x258]
push ecx
push eax
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDuplicateString
test eax, eax
js 0x408af1
mov esi, dword [ebp - 0x258]
mov dword [ebp - 0x254], esi
mov eax, dword [ebp - 0x248]
jmp 0x40878a
xor esi, esi
mov dword [ebp - 0x254], esi
push eax
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString
push esi
mov byte [ebp - 4], 0x2a
call dword [sym.imp.vccorlib140.DLL_class_Platform::Object____stdcall___abi_details::__abi_cast_String_to_Object_class_Platform::String__]
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 0x2b
test ebx, ebx
je 0x4087b1
mov dword [ebp - 0x248], ebx
jmp 0x4087c7
push str.p5_rew_b
push edi
push 0
call fcn.00401030
add esp, 0xc
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x29c]
push eax
push 3
push 0x423c44
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference
test eax, eax
js 0x408af7
push dword [ebp - 0x250]
push dword [ebp - 0x260]
push dword [ebp - 0x248]
call fcn.0040a6e0
mov byte [ebp - 4], 0x2a
add esp, 0xc
mov ecx, dword [ebp - 0x250]
test ecx, ecx
je 0x408817
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push esi
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x40891b
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408456
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408456
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp eax, 6
jne 0x4089e2
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x328]
push eax
push 0xf
push str.kRegBkgServices
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference
test eax, eax
js 0x408afd
push dword [ebp - 0x260]
call dword [sym.imp.vccorlib140.DLL_class_Platform::Object____stdcall___abi_details::__abi_cast_String_to_Object_class_Platform::String__]
mov esi, eax
mov dword [ebp - 0x258], esi
push str.p5_rew_b
push edi
push 0
mov byte [ebp - 4], 0x2c
call fcn.00401030
add esp, 0xc
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 0x2d
push eax
lea eax, [ebp - 0x33c]
push eax
push 7
push str.Command
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference
test eax, eax
js 0x408b03
push esi
push dword [ebp - 0x244]
push dword [ebp - 0x248]
call fcn.0040a6e0
mov byte [ebp - 4], 0x2c
mov ecx, dword [ebp - 0x248]
add esp, 0xc
test ecx, ecx
je 0x40890d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 9
test esi, esi
je 0x40891b
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea eax, [ebp - 0x210]
push str.FN_Error_in_commands
push eax
call fcn.00401880
add esp, 8
lea eax, [ebp - 0x210]
push eax
call esi
push 0x423484
call esi
push dword [0x4325bc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push str._nConnectToAppServiceAsync_AppNotInstalled
jmp 0x408a53
push str._nConnectToAppServiceAsync_AppUnavailable
jmp 0x408a53
push str._nConnectToAppServiceAsync_AppServiceUnavailable
jmp 0x408a53
push str._nConnectToAppServiceAsync_Unknown
call esi
push dword [0x4325bc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push eax
call fcn.004010a0
push eax
call fcn.004010a0
push eax
call fcn.004010a0
push eax
call fcn.004010a0
push eax
call fcn.004010a0
push eax
call fcn.004010a0
push eax
call fcn.004010a0