Function at 0x419370
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e475
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x47b014]
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 esi, ecx
cmp byte [esi + 8], 0
je 0x4193aa
xor eax, eax
jmp 0x419902
cmp byte [esi + 9], 0
jne 0x419528
mov eax, 1
lock xadd dword [0x481a1c], eax
inc eax
cmp eax, 1
jle 0x4193d0
mov byte [esi + 9], 1
jmp 0x419528
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x4723c0
call ebx
mov dword [0x481a20], eax
test eax, eax
je 0x4194e9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RoInitialize
push eax
call edi
mov dword [0x481a24], eax
test eax, eax
je 0x4194e4
push str.RoUninitialize
push dword [0x481a20]
call edi
mov dword [0x481a28], eax
test eax, eax
je 0x4194e4
push str.RoActivateInstance
push dword [0x481a20]
call edi
mov dword [0x481a2c], eax
test eax, eax
je 0x4194e4
push str.RoGetActivationFactory
push dword [0x481a20]
call edi
mov dword [0x481a30], eax
test eax, eax
je 0x4194e4
push 1
call dword [0x481a24]
test eax, eax
js 0x4194e4
push str.api_ms_win_core_winrt_l1_1_0.dll
call ebx
mov dword [0x481a34], eax
test eax, eax
je 0x4194fa
push str.WindowsCreateString
push eax
call edi
mov dword [0x481a38], eax
test eax, eax
je 0x4194e4
push str.WindowsCreateStringReference
push dword [0x481a34]
call edi
mov dword [0x481a3c], eax
test eax, eax
je 0x4194e4
push str.WindowsDeleteString
push dword [0x481a34]
call edi
mov dword [0x481a40], eax
test eax, eax
je 0x4194e4
push str.WindowsGetStringRawBuffer
push dword [0x481a34]
call edi
mov dword [0x481a44], eax
test eax, eax
je 0x4194e4
push str.WindowsDuplicateString
push dword [0x481a34]
call edi
mov dword [0x481a48], eax
test eax, eax
je 0x4194e4
mov al, 1
jmp 0x41951d
mov eax, dword [0x481a20]
mov ecx, dword [0x481a34]
test ecx, ecx
je 0x4194ff
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x481a20]
test eax, eax
je 0x41950a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x30
push 0
push 0x481a1c
call fcn.00423950
add esp, 0xc
xor al, al
mov byte [esi + 9], al
test al, al
je 0x4198fd
mov eax, dword [0x481a24]
test eax, eax
je 0x4198fd
push 1
call eax
test eax, eax
js 0x4198fd
mov eax, dword [0x481a3c]
mov dword [ebp - 0x18], 0
test eax, eax
jne 0x41955b
mov eax, 0x80004005
jmp 0x41991e
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push 0x3b
push str.Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisher
call eax
test eax, eax
js 0x41991e
mov dword [ebp - 4], 0
lea eax, [esi + 0x1c]
cmp dword [0x481a2c], 0
jne 0x41958e
mov ebx, 0x80004005
jmp 0x4195ee
mov dword [eax], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [0x481a2c]
mov ebx, eax
test ebx, ebx
js 0x4195eb
mov ecx, 0x471908
mov edx, 0x471c04
mov edi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4195cf
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4195b6
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x1c], eax
jmp 0x4195eb
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x1c]
push edx
push 0x471908
push eax
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [esi + 0x1c]
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
js 0x4198d9
mov ecx, dword [eax]
test ecx, ecx
je 0x419631
mov eax, dword [ecx]
lea edi, [esi + 0x20]
push edi
push ecx
call dword [eax + 0x18]
test eax, eax
js 0x4198d9
mov edx, dword [edi]
test edx, edx
je 0x4198d9
mov ecx, dword [edx]
lea eax, [esi + 0x24]
push eax
push edx
call dword [ecx + 0x30]
test eax, eax
js 0x4198d9
mov eax, dword [0x481a3c]
mov dword [ebp - 0x18], 0
test eax, eax
jne 0x41964b
mov eax, 0x80004005
jmp 0x419925
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push 0x37
push str.Windows.Devices.WiFiDirect.WiFiDirectConnectionListener
call eax
test eax, eax
js 0x419925
mov dword [ebp - 4], 1
cmp dword [0x481a2c], 0
jne 0x41967b
mov ebx, 0x80004005
jmp 0x4196d9
lea eax, [ebp - 0x14]
mov dword [esi + 0x28], 0
push eax
push dword [ebp - 0x18]
call dword [0x481a2c]
mov ebx, eax
test ebx, ebx
js 0x4196d9
mov ecx, 0x471a78
mov edx, 0x471c04
mov edi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4196bd
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4196a4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x28], eax
jmp 0x4196d9
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x28]
push edx
push 0x471a78
push eax
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
js 0x4198d9
mov eax, dword [0x481a3c]
mov dword [ebp - 0x18], 0
test eax, eax
jne 0x419702
mov eax, 0x80004005
jmp 0x41992c
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push 0x37
push str.Windows.Devices.WiFiDirect.WiFiDirectInformationElement
call eax
test eax, eax
js 0x41992c
mov eax, dword [0x481a30]
mov edi, dword [ebp - 0x18]
test eax, eax
je 0x4198d9
mov ecx, dword [esi + 0xc]
lea ebx, [esi + 0xc]
test ecx, ecx
je 0x419746
mov dword [ebx], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x481a30]
push ebx
push 0x471980
push edi
call eax
test eax, eax
js 0x4198d9
mov eax, dword [0x481a3c]
mov dword [ebp - 0x18], 0
test eax, eax
jne 0x419771
mov eax, 0x80004005
jmp 0x419933
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push 0x2b
push 0x471920
call eax
test eax, eax
js 0x419933
mov eax, dword [0x481a30]
mov edi, dword [ebp - 0x18]
test eax, eax
je 0x4198d9
mov ecx, dword [esi + 0x10]
lea ebx, [esi + 0x10]
test ecx, ecx
je 0x4197b5
mov dword [ebx], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x481a30]
push ebx
push 0x4718f8
push edi
call eax
test eax, eax
js 0x4198d9
mov eax, dword [0x481a3c]
mov dword [ebp - 0x18], 0
test eax, eax
jne 0x4197e0
mov eax, 0x80004005
jmp 0x41993a
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push 0x2b
push 0x471920
call eax
test eax, eax
js 0x41993a
mov eax, dword [0x481a30]
mov edi, dword [ebp - 0x18]
test eax, eax
je 0x4198d9
mov ecx, dword [esi + 0x14]
lea ebx, [esi + 0x14]
test ecx, ecx
je 0x419824
mov dword [ebx], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x481a30]
push ebx
push 0x471a88
push edi
call eax
test eax, eax
js 0x4198d9
mov eax, dword [0x481a3c]
mov dword [ebp - 0x30], 0
test eax, eax
jne 0x41984f
mov eax, 0x80004005
jmp 0x419941
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push 0x2d
push str.Windows.Devices.Enumeration.DeviceInformation
call eax
test eax, eax
js 0x419941
mov eax, dword [0x481a30]
mov ebx, dword [ebp - 0x30]
test eax, eax
jne 0x419879
mov dword [ebp - 0x30], eax
jmp 0x4198d9
mov ecx, dword [esi + 0x18]
lea edi, [esi + 0x18]
test ecx, ecx
je 0x419894
mov dword [edi], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x481a30]
push edi
push 0x471990
push ebx
call eax
mov ebx, eax
mov dword [ebp - 0x30], 0
test ebx, ebx
js 0x4198d9
cmp dword [esi + 0x1c], 0
je 0x4198d9
cmp dword [esi + 0x20], 0
je 0x4198d9
cmp dword [esi + 0x24], 0
je 0x4198d9
cmp dword [esi + 0x28], 0
je 0x4198d9
cmp dword [esi + 0xc], 0
je 0x4198d9
cmp dword [esi + 0x10], 0
je 0x4198d9
cmp dword [esi + 0x14], 0
je 0x4198d9
cmp dword [edi], 0
jne 0x4198e5
mov ecx, esi
mov ebx, 0x80004005
call fcn.00419220
shr ebx, 0x1f
mov eax, 0xfffffffb
xor bl, 1
mov ecx, 0
mov byte [esi + 8], bl
cmovne eax, ecx
jmp 0x419902
mov eax, 0xfffffffb
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.00422009
mov esp, ebp
pop ebp
ret
mov ecx, eax
call fcn.00415cb0
mov ecx, eax
call fcn.00415cb0
mov ecx, eax
call fcn.00415cb0
mov ecx, eax
call fcn.00415cb0
mov ecx, eax
call fcn.00415cb0
mov ecx, eax
call fcn.00415cb0
int3