Function at 0x477f84
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x66e6e3
call fcn.006313fc
sub esp, 0x78
push edi
push 2
push 0
mov byte [0x763790], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
mov dword [esp + 0x24], edi
and dword [esp + 0x84], 0
test edi, edi
js 0x47854b
mov byte [esp + 7], 1
mov byte [esp + 6], 1
and dword [esp + 0x18], 0
lea eax, [esp + 0x18]
push eax
push 0x690b74
push str.HNetCfg.FwPolicy2
mov byte [esp + 0x90], 1
call fcn.00477d29
mov edi, eax
test edi, edi
js 0x478535
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
and dword [esp + 0x10], 0
push edx
push eax
mov ecx, dword [eax]
mov byte [esp + 0x8c], 2
call dword [ecx + 0x48]
mov edi, eax
test edi, edi
js 0x47851f
push ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebp
mov byte [esp + 0x28], 1
push esi
and dword [esp + 0x20], 0
push dword [esp + 0x2c]
mov byte [esp + 0x94], 3
push dword [esp + 0xa4]
call fcn.00477dfe
mov esi, eax
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov byte [esp + 0x90], 4
test eax, eax
je 0x47805f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esp + 0x20], 0
lea ecx, [esp + 0x20]
mov eax, dword [ebp]
push ecx
push esi
push ebp
call dword [eax + 0x28]
test eax, eax
jns 0x47807c
mov edi, eax
jmp 0x47811d
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
and dword [esp + 0x28], 0
push edx
push eax
mov ecx, dword [eax]
mov byte [esp + 0x98], 5
call dword [ecx + 0x2c]
test eax, eax
jns 0x4780a0
mov edi, eax
jmp 0x478110
cmp dword [esp + 0x28], 0
je 0x47811d
push dword [esp + 0x9c]
push dword [esp + 0x2c]
call fcn.0063299b
pop ecx
pop ecx
test eax, eax
jne 0x478110
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x9c]
test eax, eax
jns 0x4780d5
mov edi, eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x84]
test eax, eax
jns 0x4780ed
mov edi, eax
cmp word [esp + 0x14], 0
je 0x478110
cmp word [esp + 0x18], 0
je 0x478110
cmp byte [esp + 0x2c], 0
je 0x47810b
mov byte [esp + 0x13], 0
jmp 0x478110
mov byte [esp + 0x12], 0
cmp dword [esp + 0x28], 0
je 0x47811d
push dword [esp + 0x28]
call ebx
cmp byte [esp + 0x2c], 0
je 0x47814b
test esi, esi
je 0x47812b
push esi
call ebx
mov eax, dword [esp + 0x20]
mov byte [esp + 0x90], 2
test eax, eax
je 0x478141
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2c], 0
jmp 0x478022
test esi, esi
je 0x478152
push esi
call ebx
mov eax, dword [esp + 0x20]
mov byte [esp + 0x90], 2
test eax, eax
je 0x478168
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [esp + 0x13], 0
jne 0x478183
mov cl, byte [esp + 0x12]
test cl, cl
jne 0x478183
mov byte [0x763790], 1
jmp 0x47851c
call fcn.00477e85
test al, al
jne 0x478196
mov edi, 0x80070005
jmp 0x47851c
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4781a4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esp + 0x24], 0
lea eax, [esp + 0x24]
push eax
push 0x690b74
push 0x690b64
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00477cb1
mov edi, eax
test edi, edi
js 0x47851c
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
test eax, eax
je 0x4781e0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esp + 0x1c], 0
lea ecx, [esp + 0x1c]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x48]
mov ecx, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
js 0x47851a
mov al, 1
mov byte [esp + 0x28], al
test al, al
je 0x478215
cmp byte [esp + 0x13], 0
je 0x47848b
jmp 0x478221
mov al, byte [esp + 0x12]
test al, al
je 0x4784e1
and dword [esp + 0x18], 0
push dword [esp + 0x28]
mov byte [esp + 0x94], 6
push dword [esp + 0xa4]
call fcn.00477dfe
mov esi, eax
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x90], 7
test eax, eax
je 0x47825e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esp + 0x18], 0
lea ecx, [esp + 0x18]
mov eax, dword [edi]
push ecx
push esi
push edi
call dword [eax + 0x28]
test eax, eax
js 0x478288
mov eax, dword [esp + 0x1c]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edi, eax
test edi, edi
js 0x4784f7
mov eax, dword [esp + 0x18]
test eax, eax
je 0x478296
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esp + 0x18], 0
lea eax, [esp + 0x18]
push eax
push 0x699344
push str.HNetCfg.FwRule
call fcn.00477d29
mov edi, eax
test edi, edi
js 0x4784f7
call fcn.00490a73
push eax
lea eax, [esp + 0x44]
push str.Allow__s_network_traffic_with_Edge_Traversal
push eax
call fcn.0047224d
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4782d9
mov eax, dword [eax]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [esp + 0x14], edi
xor ebx, ebx
mov byte [esp + 0x90], 8
push ebx
push 1
lea ecx, [esp + 0x48]
call fcn.0042341c
push dword [esp + 0x9c]
lea ecx, [esp + 0x74]
call fcn.004249e7
push eax
lea eax, [esp + 0x5c]
mov byte [esp + 0x94], 9
push eax
call fcn.0043d0b6
cmp dword [eax + 0x14], 8
jb 0x478327
mov eax, dword [eax]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x2c], eax
push ebx
push 1
lea ecx, [esp + 0x60]
call fcn.0042341c
push ebx
push 1
lea ecx, [esp + 0x78]
call fcn.0042341c
push 0x6993d4
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebp, eax
mov dword [esp + 0x38], ebp
push 0x689954
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x18]
push esi
push eax
mov byte [esp + 0x98], 0xd
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esp + 0x18]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov eax, dword [esp + 0x18]
push dword [esp + 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [esp + 0x18]
xor ecx, ecx
cmp byte [esp + 0x28], cl
sete cl
mov edx, dword [eax]
dec ecx
and ecx, 0xfffffff5
add ecx, 0x11
push ecx
push eax
call dword [edx + 0x40]
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [esp + 0x18]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x90]
mov eax, dword [esp + 0x18]
push SysReAllocString
push eax
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov eax, dword [esp + 0x18]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa0]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jns 0x478427
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x28]
jmp 0x47843c
mov al, byte [esp + 0x28]
test al, al
je 0x478436
mov byte [esp + 0x13], 0
jmp 0x47843c
xor cl, cl
mov byte [esp + 0x12], cl
test al, al
je 0x478492
test ebx, ebx
je 0x47844f
push ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call ebx
jmp 0x478455
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebp, ebp
je 0x47845c
push ebp
call ebx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x478467
push eax
call ebx
test edi, edi
je 0x47846e
push edi
call ebx
test esi, esi
je 0x478475
push esi
call ebx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x90], 2
test eax, eax
je 0x47848b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor al, al
jmp 0x478200
test ebx, ebx
je 0x4784a1
push ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call ebx
jmp 0x4784a7
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebp, ebp
je 0x4784ae
push ebp
call ebx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4784b9
push eax
call ebx
test edi, edi
je 0x4784c0
push edi
call ebx
test esi, esi
je 0x4784c7
push esi
call ebx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x90], 2
test eax, eax
je 0x4784dd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, byte [esp + 0x12]
cmp byte [esp + 0x13], 0
jne 0x478516
test al, al
jne 0x478516
mov byte [0x763790], 1
xor ecx, ecx
jmp 0x47851a
test esi, esi
je 0x4784fe
push esi
call ebx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x90], 2
test eax, eax
je 0x47851c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x47851c
mov ecx, dword [esp + 0x20]
mov edi, ecx
pop esi
pop ebp
pop ebx
mov eax, dword [esp + 0x10]
mov byte [esp + 0x84], 1
test eax, eax
je 0x478535
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x84], 0
test ecx, ecx
je 0x47854b
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x7c]
mov eax, edi
pop edi
mov dword fs:[0], ecx
leave
ret 8