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
push str.ShowToast
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference
test eax, eax
js 0x408aa9
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], 0xe
call fcn.00401030
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x264], ebx
push eax
lea eax, [ebp - 0x2b0]
push eax
push 7
push str.Command
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference
test eax, eax
js 0x408aaf
push esi
push dword [ebp - 0x248]
push ebx
call fcn.0040a6e0
add esp, 0xc
mov byte [ebp - 4], 9
test esi, esi
je 0x407ec9
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 0x4234b8
lea ecx, [ebp - 0x228]
call fcn.004017e0
push 0x423c04
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0xf
call fcn.004017e0
mov eax, dword [ebp - 0x268]
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0x10
add eax, 8
push ecx
push eax
call fcn.004073f0
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x407f54
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407f4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407f4a
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 - 0x218], 0
ja 0x407fc3
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x214]
cmp edx, 8
jb 0x407fa1
mov ecx, dword [ebp - 0x228]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407f97
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408450
push edx
push ecx
call fcn.0041ed03
add esp, 8
xor eax, eax
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
jmp 0x408a12
mov byte [ebp - 4], 0x11
lea edx, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
cmovae edx, dword [ebp - 0x228]
call fcn.00403c70
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 0x13
test eax, eax
je 0x408011
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 0x408ab5
mov esi, dword [ebp - 0x258]
mov eax, dword [ebp - 0x250]
jmp 0x408013
xor esi, esi
push eax
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x254], esi
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString
push esi
mov byte [ebp - 4], 0x14
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
mov byte [ebp - 4], 0x15
test ebx, ebx
je 0x408048
mov dword [ebp - 0x250], ebx
jmp 0x40805e
push str.p5_rew_b
push edi
push 0
call fcn.00401030
add esp, 0xc
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x288]
push eax
push 3
push 0x423c04
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference
test eax, eax
js 0x408abb
push esi
push dword [ebp - 0x258]
push dword [ebp - 0x250]
call fcn.0040a6e0
add esp, 0xc
mov byte [ebp - 4], 0x14
test esi, esi
je 0x4080a3
mov eax, dword [esi]
push esi
call dword [eax + 8]
push str.title
lea ecx, [ebp - 0x240]
call fcn.004017e0
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x240]
push eax
mov eax, dword [ebp - 0x268]
add eax, 8
push eax
call fcn.004073f0
mov byte [ebp - 4], 0x14
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x40811a
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408110
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408110
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 - 0x218], 0
ja 0x408198
push dword [ebp - 0x248]
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x214]
cmp edx, 8
jb 0x407fa1
mov ecx, dword [ebp - 0x228]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40816c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408450
push edx
push ecx
call fcn.0041ed03
add esp, 8
mov dword [ebp - 0x218], 0
xor eax, eax
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
jmp 0x408a12
mov byte [ebp - 4], 0x17
lea edx, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
cmovae edx, dword [ebp - 0x228]
call fcn.00403c70
mov esi, eax
mov dword [ebp - 0x244], esi
mov edx, esi
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x254]
call fcn.00403b10
push esi
mov byte [ebp - 4], 0x14
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString
push dword [ebp - 0x254]
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
mov byte [ebp - 4], 0x1a
test ebx, ebx
je 0x4081fc
mov dword [ebp - 0x248], ebx
jmp 0x408212
push str.p5_rew_b
push edi
push 0
call fcn.00401030
add esp, 0xc
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x288]
push eax
push 5
push str.title
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference
test eax, eax
js 0x408ac1
push esi
push dword [ebp - 0x258]
push dword [ebp - 0x248]
call fcn.0040a6e0
add esp, 0xc
mov byte [ebp - 4], 0x14
test esi, esi
je 0x408257
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 0x423c18
lea ecx, [ebp - 0x240]
call fcn.004017e0
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0x1b
push eax
lea eax, [ebp - 0x240]
push eax
mov eax, dword [ebp - 0x268]
add eax, 8
push eax
call fcn.004073f0
mov byte [ebp - 4], 0x14
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x4082ce
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4082c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4082c4
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 - 0x218], 0
ja 0x40834c
push dword [ebp - 0x254]
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x214]
cmp edx, 8
jb 0x407fa1
mov ecx, dword [ebp - 0x228]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408320
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408450
push edx
push ecx
call fcn.0041ed03
add esp, 8
mov dword [ebp - 0x218], 0
xor eax, eax
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
jmp 0x408a12
mov byte [ebp - 4], 0x1c
lea edx, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
cmovae edx, dword [ebp - 0x228]
call fcn.00403c70
mov esi, eax
mov dword [ebp - 0x244], esi
mov edx, esi
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x254]
call fcn.00403b10
push esi
mov byte [ebp - 4], 0x14
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString
push dword [ebp - 0x254]
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
mov byte [ebp - 4], 0x1f
test ebx, ebx
je 0x4083b0
mov dword [ebp - 0x248], ebx
jmp 0x4083c6
push str.p5_rew_b
push edi
push 0
call fcn.00401030
add esp, 0xc
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x288]
push eax
push 3
push 0x423c18
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference
test eax, eax
js 0x408ac7
push esi
push dword [ebp - 0x258]
push dword [ebp - 0x248]
call fcn.0040a6e0
add esp, 0xc
mov byte [ebp - 4], 0x14
test esi, esi
je 0x40840b
mov eax, dword [esi]
push esi
call dword [eax + 8]
push dword [ebp - 0x254]
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x214]
cmp edx, 8
jb 0x40891b
mov ecx, dword [ebp - 0x228]
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]
push edx
push ecx
call fcn.0041ed03
add esp, 8
jmp 0x40891b
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 0x423c34
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 0x423c34
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]
mov eax, dword [ebp - 0x268]
push edi
mov byte [ebp - 0x269], 0
push dword [eax]
call fcn.0040a7c0
mov esi, eax
mov dword [ebp - 0x244], esi
add esp, 4
mov byte [ebp - 4], 0x2e
lea eax, [ebp - 0x25c]
push eax
sub esp, 0x30
mov ecx, esp
call fcn.00405520
mov edx, esi
lea ecx, [ebp - 0x24c]
call fcn.0040b000
add esp, 0x30
mov ecx, eax
mov byte [ebp - 4], 0x2f
call fcn.0040b0b0
mov byte [ebp - 4], 0x30
or eax, 0xffffffff
mov esi, dword [ebp - 0x258]
test esi, esi
je 0x40899f
lock xadd dword [esi + 4], eax
jne 0x40899c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or ecx, 0xffffffff
mov eax, ecx
lock xadd dword [esi + 8], eax
jne 0x40899c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
or eax, 0xffffffff
mov byte [ebp - 4], 0x31
mov esi, dword [ebp - 0x248]
test esi, esi
je 0x4089cc
lock xadd dword [esi + 4], eax
jne 0x4089cc
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x4089cc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x244]
test ecx, ecx
je 0x408a12
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x408a12
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]
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x408a23
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov dword [ebp - 0x264], 0
test edi, edi
je 0x408a61
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x408a61
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]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ecc2
mov esp, ebp
pop ebp
ret 4
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
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
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
push eax
call fcn.004010a0
push eax
call fcn.004010a0
nop dword [eax]
jnp 0x408b89
inc eax
add byte [ecx], bh
mov al, byte [eax]
inc eax
mov al, byte [eax]
inc edi
mov al, byte [eax]
int3