Function at 0x406b30
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x210
lea eax, [esp + 3]
mov byte [esp + 3], 0
push eax
call fcn.0041f84f
add esp, 4
test al, al
je 0x406de2
mov al, byte [esp + 3]
test al, al
je 0x406de2
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov byte [esp + 0x118], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
lea edx, [esp + 0x118]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x220]
stosw word es:[edi], ax
push ecx
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_s
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [0x441ff4]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 0xc
test eax, eax
je 0x406c39
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x406bd8
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x406c39
cmp eax, 3
jle 0x406c39
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x406bf9
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x406c2b
mov eax, dword [0x436030]
push 3
push eax
push 0x68c
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
push str.PPPoELoadReg_n
call fcn.0041c506
add esp, 0x14
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 0
push 4
push 0
lea edx, [esp + 0x130]
push 0
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x406dd4
lea eax, [esp + 0x14]
push ebp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str.reg_bak.arr
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 8
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegRestoreKeyA]
mov ebp, eax
mov eax, dword [0x441ff4]
test ebp, ebp
jne 0x406d46
test eax, eax
je 0x406dc8
mov edx, dword [0x441fd4]
mov eax, dword [edx]
cmp eax, 3
je 0x406cf2
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x406dc8
cmp eax, 3
jle 0x406dc8
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x406d13
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x406dba
mov eax, dword [0x436030]
push 3
push eax
push 0x696
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
push str.PPPoELoadReg_RegRestoreKey_success_n
call fcn.0041c506
add esp, 0x14
jmp 0x406db5
test eax, eax
je 0x406dc8
mov ecx, dword [0x441fd4]
mov eax, dword [ecx]
cmp eax, 1
je 0x406d67
mov edx, dword [0x441fdc]
cmp dword [edx], 0
jne 0x406dc8
cmp eax, 1
jle 0x406dc8
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x406d86
mov eax, dword [0x441fa0]
mov dword [0x436030], eax
call fcn.0041c4b1
test eax, eax
je 0x406dba
mov ecx, dword [0x436030]
push 1
push ecx
push 0x69a
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
push ebp
push str.PPPoELoadReg_RegRestoreKey_failed__error___d_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
add esp, 0x210
ret