Function at 0x435c80
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x53ca28
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 edi, ecx
mov dword [esp + 0x10], eax
lea esi, [edi + 0xbc]
lea ecx, [esp + 0x10]
push esi
mov dword [esp + 0x30], 0
xor bl, bl
call fcn.00512a1d
push str.NetInit.sav
lea ecx, [esp + 0x14]
call fcn.00512cc0
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [0x5ab980]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x2c], 2
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x435e04
push str.Saved_Network_Settings_file_was_found._Do_you_want_to_overwrite_it_
lea ecx, [esp + 0x18]
call fcn.00512a6d
lea edx, [esp + 0x1c]
push 1
push edx
push str.EisenworldKey
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl_
call fcn.0041efa0
add esp, 0x10
test eax, eax
jle 0x435d41
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
push str.This_machine_is_already_set_as_a__s__do_you_want_to_re_set_it___nClicking_YES_will_overwrite_the_saved_settings.
push ecx
call fcn.0050e6c7
add esp, 0xc
push str.Verify_Overwrite
lea ecx, [esp + 0x1c]
call fcn.00512952
push 0
lea edx, [esp + 0x1c]
push 0x34
lea eax, [esp + 0x1c]
push edx
push eax
mov byte [esp + 0x3c], 3
call fcn.0042e190
add esp, 0x10
cmp eax, 6
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
sete byte [esp + 0xf]
call fcn.005128e4
mov al, byte [esp + 0xf]
test al, al
je 0x435eca
push 1
push 0x5b0738
push str.EisenworldKey
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl_
call fcn.0041e450
mov eax, dword [edi + 0x94]
add esp, 0x10
test eax, eax
jne 0x435dbe
mov eax, dword [edi + 0x98]
test eax, eax
mov eax, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
je 0x435dc3
mov eax, str.SYSTEMCurrentControlSetServicesClassNetTrans_
push eax
lea ecx, [esp + 0x1c]
call fcn.00512952
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x40], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x435e0b
lea ecx, [esp + 0x18]
xor bl, bl
mov byte [esp + 0x2c], 2
call fcn.005128e4
jmp 0x435e6a
mov byte [esp + 0xf], 1
jmp 0x435d8c
mov eax, dword [esp + 0x10]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x10]
push edx
call fcn.004211c0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
add esp, 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
mov edx, dword [esp + 0x20]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x435e58
mov bl, 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.005128e4
test bl, bl
jne 0x435eca
mov al, byte [esp + 0xf]
test al, al
je 0x435eca
push str.Cannot_save_network_settings.
lea ecx, [esp + 0x1c]
call fcn.00512952
push str.Unable_to_save_your_current_network_settings_in_order_to_be_able_to_restore_them_later.
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 5
call fcn.00512952
push 0
lea eax, [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x3c], 6
call fcn.0042e190
add esp, 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 5
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 0
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x24]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret