Function at 0x446530
Capabilities:
Delete file
Enumerate files on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462f5c
mov eax, dword fs:[0]
push eax
mov eax, 0x211c
call fcn.0045db90
mov eax, dword [0x4920c0]
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
xor edi, edi
xor eax, eax
mov dword [ebp - 0x20ec], 0
mov dword [ebp - 0x1e48], 0
mov dword [ebp - 0x1e14], 0
mov dword [ebp - 0x20fc], edi
mov dword [ebp - 0x1e30], 7
mov dword [ebp - 0x1e34], edi
mov word [ebp - 0x1e44], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x20f4], eax
mov dword [ebp - 0x20f0], eax
cmp dword [0x494614], eax
jne 0x4465c4
mov ecx, str.____Not_supported__Wi_Fi_functions_not_available_
jmp 0x447155
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea edx, [ebp - 0x20e8]
mov ecx, esi
call fcn.00445e50
test eax, eax
jne 0x447150
cmp byte [0x4962f5], al
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
setne al
push 4
mov dword [ebp - 0x1e14], eax
lea eax, [ebp - 0x1e14]
push eax
push 4
push 0
push str.AutoConnect
push dword [ebp - 0x20e8]
call ebx
push 4
lea eax, [ebp - 0x1e14]
push eax
push 4
push 0
push str.ProfileCount
push dword [ebp - 0x20e8]
mov dword [ebp - 0x1e14], 0
call ebx
mov eax, dword [0x4962f0]
test eax, eax
je 0x446645
cmp eax, 1
je 0x446645
xor cl, cl
jmp 0x446647
mov cl, 1
test eax, eax
je 0x446657
mov byte [ebp - 0x20f5], 0
cmp eax, 2
jne 0x44665e
mov byte [ebp - 0x20f5], 1
test cl, cl
je 0x446b5b
lea eax, [ebp - 0x20ec]
push eax
lea eax, [ebp - 0x1e48]
push eax
push 0
push 2
call dword [0x4945e4]
test eax, eax
je 0x4466c0
push eax
push str.____Error:_Unable_to_open_handle___u_
push 0x494648
call fcn.00409980
add esp, 0xc
mov edx, 1
mov ecx, 0x494648
call fcn.0040da30
push dword [ebp - 0x20e8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1e44]
call fcn.00401f20
jmp 0x447176
lea eax, [ebp - 0x20f4]
push eax
push 0
push dword [ebp - 0x20ec]
call dword [0x4945f4]
test eax, eax
je 0x44670b
push eax
push str.____Error:_Unable_to_enumerate_interfaces___u_
push 0x494648
call fcn.00409980
add esp, 0xc
mov edx, 1
mov ecx, 0x494648
call fcn.0040da30
push 0
push dword [ebp - 0x20ec]
call dword [0x4945f8]
jmp 0x4466a4
mov ecx, dword [ebp - 0x20f4]
xor edx, edx
mov dword [ebp - 0x2104], edx
cmp dword [ecx], edx
jbe 0x446b25
xor ebx, ebx
mov dword [ebp - 0x2108], ebx
mov esi, str.__not_connected_
lea edi, [edx + 1]
add ebx, 8
add ebx, ecx
cmp dword [ebp - 0x1e30], 8
lea eax, [ebp - 0x1e44]
cmovae eax, dword [ebp - 0x1e44]
xor ecx, ecx
mov dword [ebp - 0x1e34], 0
mov word [eax], cx
cmp dword [ebx + 0x210], 1
mov eax, str.__connected_
cmovne eax, esi
push eax
lea eax, [ebx + 0x10]
push eax
push edx
push str.____Interface___d_:__s_s
push 0x494648
mov dword [ebp - 0x210c], ebx
call fcn.00409980
add esp, 0x14
mov edx, edi
mov ecx, 0x494648
call fcn.0040da30
cmp dword [ebx + 0x210], 1
jne 0x446838
lea eax, [ebp - 0x1e58]
push eax
lea eax, [ebp - 0x20e4]
push eax
lea eax, [ebp - 0x1e54]
push eax
push 0
push 7
push ebx
push dword [ebp - 0x20ec]
mov dword [ebp - 0x20e4], 0
mov dword [ebp - 0x1e54], 0x25c
mov dword [ebp - 0x1e58], 3
call dword [0x4945e0]
test eax, eax
je 0x446808
push eax
push str.____Error:_Unable_to_query_interface___u_
push 0x494648
call fcn.00409980
add esp, 0xc
mov edx, edi
mov ecx, 0x494648
call fcn.0040da30
jmp 0x44681d
mov eax, dword [ebp - 0x20e4]
add eax, 8
push eax
lea ecx, [ebp - 0x1e44]
call fcn.00401f70
mov eax, dword [ebp - 0x20e4]
test eax, eax
je 0x446838
push eax
call dword [0x4945f0]
mov dword [ebp - 0x20e4], 0
lea eax, [ebp - 0x20f0]
push eax
push 0
push ebx
push dword [ebp - 0x20ec]
call dword [0x4945e8]
test eax, eax
je 0x44687c
push eax
push str.____Error:_Unable_to_get_profile_list___u_
push 0x494648
call fcn.00409980
add esp, 0xc
mov edx, edi
mov ecx, 0x494648
call fcn.0040da30
mov eax, dword [ebp - 0x20f0]
jmp 0x446af0
mov eax, dword [ebp - 0x20f0]
xor edi, edi
cmp dword [eax], edi
jbe 0x446aeb
xor ebx, ebx
mov dword [ebp - 0x2100], ebx
lea esi, [eax + 8]
xor eax, eax
add esi, ebx
cmp byte [0x4962f4], al
mov ecx, 4
cmovne eax, ecx
mov dword [ebp - 0x1e50], eax
lea eax, [ebp - 0x1e4c]
push eax
lea eax, [ebp - 0x1e50]
push eax
lea eax, [ebp - 0x20e0]
push eax
push 0
push esi
push dword [ebp - 0x210c]
mov dword [ebp - 0x20e0], 0
push dword [ebp - 0x20ec]
mov dword [ebp - 0x1e4c], 0
call dword [0x4945ec]
test eax, eax
je 0x446919
push eax
push esi
push str.____Profile:__s__Error:__u_
push 0x494648
call fcn.00409980
add esp, 0x10
mov edx, 1
mov ecx, 0x494648
call fcn.0040da30
jmp 0x446acb
mov edx, esi
lea ecx, [ebp - 0x1e44]
call fcn.0044eb10
mov byte [ebp - 0x20f6], al
mov eax, dword [ebp - 0x20fc]
inc eax
push eax
mov dword [ebp - 0x20fc], eax
lea eax, [ebp - 0xa10]
push str.Profile_03d
push eax
call fcn.00409980
add esp, 0xc
lea eax, [ebp - 0x20dc]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0xa10]
push eax
push dword [ebp - 0x20e8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x446a88
cmp byte [ebp - 0x20f6], al
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
setne al
push 4
mov dword [ebp - 0x1e14], eax
lea eax, [ebp - 0x1e14]
push eax
push 4
push 0
push str.Connect
push dword [ebp - 0x20dc]
call ebx
push 4
lea eax, [ebp - 0x1e14]
push eax
push 4
push 0
push str.SystemProfile
push dword [ebp - 0x20dc]
mov dword [ebp - 0x1e14], 1
call ebx
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4469d7
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.Name
push dword [ebp - 0x20dc]
call ebx
mov edx, dword [ebp - 0x20e0]
mov ecx, edx
lea ebx, [ecx + 2]
jmp 0x446a10
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x446a10
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.Profile
push dword [ebp - 0x20dc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x20dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x20f6], 0
mov ecx, 0x46b720
mov eax, str.__connected
cmove eax, ecx
push eax
push esi
push str.____Profile:__s__exported_s_
push 0x494648
call fcn.00409980
add esp, 0x10
mov edx, 1
mov ecx, 0x494648
call fcn.0040da30
mov ebx, dword [ebp - 0x2100]
jmp 0x446ab0
dec dword [ebp - 0x20fc]
push esi
push str.____Profile:__s__Error:_Unable_to_save_profile_data_
push 0x494648
call fcn.00409980
add esp, 0xc
mov edx, 1
mov ecx, 0x494648
call fcn.0040da30
mov eax, dword [ebp - 0x20e0]
test eax, eax
je 0x446acb
push eax
call dword [0x4945f0]
mov dword [ebp - 0x20e0], 0
mov eax, dword [ebp - 0x20f0]
inc edi
add ebx, 0x204
mov dword [ebp - 0x2100], ebx
cmp edi, dword [eax]
jb 0x446894
mov esi, str.__not_connected_
mov edi, 1
mov edx, dword [ebp - 0x2104]
mov ebx, dword [ebp - 0x2108]
mov ecx, dword [ebp - 0x20f4]
inc edx
add ebx, 0x214
mov dword [ebp - 0x2104], edx
mov dword [ebp - 0x2108], ebx
cmp edx, dword [ecx]
jb 0x446731
mov edi, dword [ebp - 0x20fc]
jmp 0x446b2b
mov eax, dword [ebp - 0x20f0]
test eax, eax
je 0x446b46
push eax
call dword [0x4945f0]
mov ecx, dword [ebp - 0x20f4]
mov dword [ebp - 0x20f0], 0
test ecx, ecx
je 0x446b5b
push ecx
call dword [0x4945f0]
mov dword [ebp - 0x20f4], 0
cmp byte [ebp - 0x20f5], 0
je 0x44710d
cmp dword [0x495cd0], 8
mov eax, 0x495cbc
cmovae eax, dword [0x495cbc]
push eax
lea eax, [ebp - 0x1410]
push str._sWi_Fi.xml
push eax
call fcn.00409980
add esp, 0xc
lea eax, [ebp - 0x20d8]
push eax
lea eax, [ebp - 0x1410]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0x20e4], eax
cmp eax, 0xffffffff
je 0x44710d
mov edi, 1
mov edx, edi
mov ecx, str.Exporting_Wi_Fi_profile_files
call fcn.0040da30
mov ebx, dword [ebp - 0x20e4]
lea ebx, [ebx]
cmp dword [0x495cd0], 8
lea ecx, [ebp - 0x20ac]
push ecx
mov eax, 0x495cbc
cmovae eax, dword [0x495cbc]
push eax
lea eax, [ebp - 0x1410]
push 0x46c04c
push eax
call fcn.00409980
push 5
mov edx, str._WLANProfile
lea ecx, [ebp - 0x1410]
call fcn.0040f1c0
add esp, 0x14
test al, al
je 0x4470ea
xor eax, eax
mov dword [ebp - 0x1e74], 7
mov dword [ebp - 0x1e78], 0
mov word [ebp - 0x1e88], ax
mov dword [ebp - 0x1e18], 7
mov dword [ebp - 0x1e1c], eax
mov word [ebp - 0x1e2c], ax
push 0x46d484
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0x20e0]
push eax
mov byte [ebp - 4], 2
xor bl, bl
call fcn.004509bf
add esp, 0xc
test eax, eax
jne 0x447096
mov eax, dword [ebp - 0x20e0]
test eax, eax
je 0x447096
push eax
call fcn.00450b7c
add esp, 4
test eax, eax
jne 0x446e9d
jmp 0x446ca0
push dword [ebp - 0x20e0]
xor eax, eax
mov word [ebp - 0xa10], ax
lea eax, [ebp - 0xa10]
push 0x500
push eax
call fcn.00450efc
add esp, 0xc
cmp word [ebp - 0xa10], 0
jne 0x446cd1
xor eax, eax
jmp 0x446cef
lea eax, [ebp - 0xa10]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x446ce0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xa10]
push eax
lea ecx, [ebp - 0x1e88]
call fcn.00409480
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0x1e10]
push 0x500
push eax
call fcn.004513ee
add esp, 0xc
lea eax, [ebp - 0x1e10]
push 0x500
push eax
call fcn.00451b0d
xor eax, eax
add esp, 8
mov dword [ebp - 0x1e5c], 7
mov dword [ebp - 0x1e60], 0
mov word [ebp - 0x1e70], ax
cmp word [ebp - 0x1e10], ax
jne 0x446d5b
xor ecx, ecx
jmp 0x446d73
lea ecx, [ebp - 0x1e10]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x446d64
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1e10]
push eax
lea ecx, [ebp - 0x1e70]
call fcn.004023a0
push 0x14
push ecx
push str._connectionmode_auto
lea ecx, [ebp - 0x1e70]
mov byte [ebp - 4], 3
call fcn.00409230
movzx ebx, bl
cmp eax, 0xffffffff
cmovne ebx, edi
cmp dword [ebp - 0x1e1c], 0
jne 0x446e6c
push 6
push ecx
push str._name_
lea ecx, [ebp - 0x1e70]
call fcn.00409230
push 7
push ecx
push str.__name_
lea ecx, [ebp - 0x1e70]
mov edi, eax
call fcn.00409230
mov esi, eax
cmp edi, 0xffffffff
je 0x446e67
cmp esi, 0xffffffff
je 0x446e67
cmp word [ebp - 0xa10], 0
jne 0x446dfd
xor ecx, ecx
jmp 0x446e15
lea ecx, [ebp - 0xa10]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x446e06
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xa10]
push eax
lea ecx, [ebp - 0x1e70]
call fcn.004023a0
sub esi, edi
sub esi, 6
push esi
lea eax, [edi + 6]
push eax
lea eax, [ebp - 0x2124]
push eax
lea ecx, [ebp - 0x1e70]
call fcn.00408fa0
push eax
lea ecx, [ebp - 0x1e2c]
call fcn.00408ec0
cmp dword [ebp - 0x2110], 8
jb 0x446e67
push dword [ebp - 0x2124]
call fcn.00450920
add esp, 4
mov edi, 1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1e5c], 8
jb 0x446e87
push dword [ebp - 0x1e70]
call fcn.00450920
add esp, 4
push dword [ebp - 0x20e0]
call fcn.00450b7c
add esp, 4
test eax, eax
je 0x446ca0
push dword [ebp - 0x20e0]
call fcn.004514b6
add esp, 4
cmp dword [ebp - 0x1e1c], 0
je 0x447096
lea eax, [ebp - 0x20ac]
push eax
push str.____Exporting:__s
push 0x494648
call fcn.00409980
add esp, 0xc
mov edx, edi
mov ecx, 0x494648
call fcn.0040da30
mov esi, dword [ebp - 0x20fc]
inc esi
push esi
lea eax, [ebp - 0xa10]
push str.Profile_03d
push eax
mov dword [ebp - 0x20fc], esi
call fcn.00409980
add esp, 0xc
lea eax, [ebp - 0x20dc]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0xa10]
push eax
push dword [ebp - 0x20e8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x44705c
test bl, bl
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
setne al
push 4
mov dword [ebp - 0x1e14], eax
lea eax, [ebp - 0x1e14]
push eax
push 4
push 0
push str.Connect
push dword [ebp - 0x20dc]
call ebx
push 4
lea eax, [ebp - 0x1e14]
push eax
push 4
push 0
push str.SystemProfile
push dword [ebp - 0x20dc]
mov dword [ebp - 0x1e14], 0
call ebx
mov esi, dword [ebp - 0x1e18]
mov edi, dword [ebp - 0x1e2c]
lea edx, [ebp - 0x1e2c]
cmp esi, 8
cmovae edx, edi
lea ecx, [edx + 2]
lea ebx, [ebx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x446fa0
sub edx, ecx
sar edx, 1
lea ecx, [ebp - 0x1e2c]
lea eax, [edx*2 + 2]
push eax
cmp esi, 8
cmovae ecx, edi
push ecx
push 1
push 0
push str.Name
push dword [ebp - 0x20dc]
call ebx
mov esi, dword [ebp - 0x1e74]
mov edi, dword [ebp - 0x1e88]
lea edx, [ebp - 0x1e88]
cmp esi, 8
cmovae edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x446ff0
sub edx, ecx
sar edx, 1
lea ecx, [ebp - 0x1e88]
lea eax, [edx*2 + 2]
push eax
cmp esi, 8
cmovae ecx, edi
push ecx
push 1
push 0
push str.Profile
push dword [ebp - 0x20dc]
call ebx
push dword [ebp - 0x20dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1e18], 8
lea eax, [ebp - 0x1e2c]
cmovae eax, dword [ebp - 0x1e2c]
push eax
push str.____Profile:__s__exported_
push 0x494648
call fcn.00409980
mov edi, 1
jmp 0x447087
dec esi
cmp dword [ebp - 0x1e18], 8
lea eax, [ebp - 0x1e2c]
cmovae eax, dword [ebp - 0x1e2c]
push eax
push str.____Profile:__s__Error:_Unable_to_save_profile_data_
push 0x494648
mov dword [ebp - 0x20fc], esi
call fcn.00409980
add esp, 0xc
mov edx, edi
mov ecx, 0x494648
call fcn.0040da30
cmp dword [ebp - 0x1e18], 8
jb 0x4470ad
push dword [ebp - 0x1e2c]
call fcn.00450920
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x1e74], 8
mov dword [ebp - 0x1e18], 7
mov dword [ebp - 0x1e1c], 0
mov word [ebp - 0x1e2c], ax
jb 0x4470e4
push dword [ebp - 0x1e88]
call fcn.00450920
add esp, 4
mov ebx, dword [ebp - 0x20e4]
lea eax, [ebp - 0x20d8]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x446bd0
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov edi, dword [ebp - 0x20fc]
test edi, edi
jne 0x44711e
lea edx, [edi + 1]
mov ecx, str.____No_profiles_exported
call fcn.0040da30
push 4
lea eax, [ebp - 0x1e14]
push eax
push 4
push 0
push str.ProfileCount
push dword [ebp - 0x20e8]
mov dword [ebp - 0x1e14], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x20e8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x44715f
mov ecx, str.____Error:_Unable_to_save_profile_data
mov edx, 1
call fcn.0040da30
cmp dword [ebp - 0x1e30], 8
jb 0x447176
push dword [ebp - 0x1e44]
call fcn.00450920
add esp, 4
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.0044fdac
mov esp, ebp
pop ebp
ret