Function at 0x40ff30
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4320d6
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
xor esi, esi
call fcn.0040fcf0
cmp eax, 2
je 0x40ff5f
cmp eax, 3
jne 0x40ff72
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x78
jl 0x40ff50
jmp 0x40ff7b
cmp esi, 0x78
jl 0x410016
mov eax, dword [0x441ff4]
test eax, eax
je 0x4101cb
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 2
je 0x40ffac
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x4101cb
cmp eax, 2
jle 0x4101cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x40ffd1
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x410003
mov eax, dword [0x436030]
push 2
push eax
push 0xea7
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
push str.RestartDNS:_the_current_status_is_penging__we_do_nothing..._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]
jmp 0x4101cb
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x441e2c
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
call fcn.00431b90
push 0x441e2c
lea ecx, [esp + 0x10]
mov dword [esp + 0x128], 0
call fcn.00431b90
lea ecx, [esp + 0x18]
push 0x104
push ecx
mov byte [esp + 0x12c], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call fcn.00431b96
push str.cmd.exe
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov al, byte [esp + 0x12c]
test al, al
jne 0x4100ad
lea eax, [esp + 0xc]
push str.cmd__c_net_stop_dnscache
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
mov dword [esp + 0x14], 4
jmp 0x4100c7
lea ecx, [esp + 0xc]
push str.cmd__c_net_start_dnscache
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push ebp
push 0
push 0x441e2c
push edx
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
mov eax, dword [0x441ff4]
test eax, eax
je 0x41017b
mov ecx, dword [0x441fd4]
mov eax, dword [ecx]
cmp eax, 3
je 0x410115
mov edx, dword [0x441fdc]
cmp dword [edx], 0
jne 0x41017b
cmp eax, 3
jle 0x41017b
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x410134
mov eax, dword [0x441fa0]
mov dword [0x436030], eax
call fcn.0041c4b1
test eax, eax
je 0x41016d
mov ecx, dword [0x436030]
push 3
push ecx
push 0xebf
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
mov edx, dword [esp + 0x20]
push ebp
push edx
push str.RestartDNS:_ShellExecute__s__the_ret_is__d._n
call fcn.0041c506
add esp, 0x1c
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esp + 0x18]
xor esi, esi
pop ebp
call fcn.0040fcf0
cmp eax, edi
je 0x410195
cmp eax, 2
je 0x410195
cmp eax, 3
jne 0x4101e5
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x78
jl 0x410182
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret
mov eax, dword [0x441ff4]
test eax, eax
je 0x410274
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x41020e
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x410274
cmp eax, 3
jle 0x410274
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x41022f
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x410266
mov eax, dword [0x436030]
push 3
push eax
push 0xecb
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
mov ecx, dword [esp + 0x1c]
push ecx
push str.RestartDNS:_The_CMD:__s_executed_successful._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]
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
jmp 0x4101cd