Function at 0x435f10
Capabilities:
Access peb ldr_data
Check if file exists
Delete file
Delete registry key
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x53ca98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x5ab980]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], eax
lea eax, [esi + 0xbc]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x30], 1
call fcn.00512a1d
push str.NetInit.sav
lea ecx, [esp + 0x10]
call fcn.00512cc0
push str.TempLoad
lea ecx, [esp + 0x14]
call fcn.00512952
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x34], 2
call edi
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x436147
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push str.HKEY_LOCAL_MACHINE_
push ecx
call fcn.00512bed
mov eax, dword [esi + 0x98]
mov byte [esp + 0x2c], 3
test eax, eax
jne 0x435fd0
mov eax, dword [esi + 0x94]
test eax, eax
mov eax, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
je 0x435fd5
mov eax, str.SYSTEMCurrentControlSetServicesClassNetTrans_
push eax
lea ecx, [esp + 0x38]
call fcn.00512952
lea edx, [esp + 0xc]
mov bl, 4
push edx
mov byte [esp + 0x30], bl
call fcn.004211c0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add esp, 4
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
mov esi, eax
test esi, esi
je 0x436014
push str.RegLoadKey_Failed.
jmp 0x436092
mov edx, dword [esp + 0x34]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 0x34]
lea ecx, [esp + 0x20]
push eax
push str.HKEY_LOCAL_MACHINE_
push ecx
call fcn.00512bed
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 5
call fcn.00512a1d
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], bl
call fcn.005128e4
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00512659
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x38], 6
call fcn.00512659
mov byte [esp + 0x34], bl
call fcn.0041ec10
mov esi, eax
add esp, 8
test esi, esi
je 0x4360bc
push str.Failed_to_Copy_Registry.
lea ecx, [esp + 0x18]
call fcn.00512a6d
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.005128e4
jmp 0x436212
mov ecx, dword [esp + 0x10]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.005128e4
mov ecx, dword [esp + 0xc]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
sete bl
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.005128e4
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.005128e4
mov al, bl
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
mov al, byte [esp + 0x34]
test al, al
je 0x4361f6
mov eax, dword [0x5ab980]
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], eax
push str.A_backup_file_containing_previous_network_settings_to_restore_was_not_found._n_nGenerally__network_settings_only_need_to_be_restored_if_you_set_up_a_temporary_network_for_Network_Crossover_Cable_transfers_using_PC_Relocators_built_in_Connectivity_Wizard.
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 8
call fcn.00512a6d
push str.A_Network_Restore_is_not_necessary
lea ecx, [esp + 0x38]
call fcn.00512a6d
push 0
lea edx, [esp + 0x38]
push 0
lea eax, [esp + 0x20]
push edx
push eax
call fcn.0042e190
add esp, 0x10
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 7
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.005128e4
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 4
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push str.Backup_file_not_found____s
push edx
call fcn.0050e6c7
add esp, 0xc
mov esi, 2
mov eax, dword [0x5ab980]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
push str.Cannot_restore_old_Network_Settings
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 0xa
call fcn.00512a6d
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push esi
push str.Error_Code:__d_n_s
push ecx
call fcn.0050e6c7
push 0
lea edx, [esp + 0x30]
push 0x10
lea eax, [esp + 0x38]
push edx
push eax
call fcn.0042e190
add esp, 0x20
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 9
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 2
call fcn.005128e4
jmp 0x4360ff