Function at 0x401610
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
sub esp, 0x58c
mov ecx, 0x16
xor eax, eax
xor edx, edx
push esi
push edi
mov esi, str.GJDXBTQQDMSTRDQ_Rnesv_qd_Lhbqnrnes_Vhmcnvr
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401659
mov al, byte [esp + edx + 0x24]
lea edi, [esp + 0x24]
inc al
or ecx, 0xffffffff
mov byte [esp + edx + 0x24], al
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x40163c
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x186]
mov word [esp + 0x184], 0
rep stosd dword es:[edi], eax
mov cx, word [0x40b038]
mov esi, str.qdfhmh_dwd
stosw word es:[edi], ax
mov eax, dword [0x40b034]
mov word [esp + 0x390], cx
mov dword [esp + 0x38c], eax
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x392]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 6
lea edi, [esp + 0xc]
lea edx, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
push edx
xor edi, edi
call fcn.00403e63
add esp, 4
test eax, eax
jbe 0x4016e1
lea esi, [esp + 0xc]
inc word [esi]
lea eax, [esp + 0xc]
push eax
inc edi
add esi, 2
call fcn.00403e63
add esp, 4
cmp edi, eax
jb 0x4016c9
lea ecx, [esp + 0xc]
push ebx
lea edx, [esp + 0x390]
push ecx
push edx
call fcn.00403c5a
mov al, byte [0x40c6f4]
mov ecx, 0x40
mov byte [esp + 0x8c], al
xor eax, eax
lea edi, [esp + 0x8d]
add esp, 8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x84]
push 0x102
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
or ecx, 0xffffffff
mov edi, 0x40c6f4
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x84]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b0ec
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x188]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.ppxxxx
lea ecx, [esp + 0x18c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push ecx
call edi
push 0
push 0
push 2
push 0
push 1
lea edx, [esp + 0x19c]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
pop ebx
cmp esi, 0xffffffff
je 0x401826
lea eax, [esp + 8]
push 0
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x2c]
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x184]
lea ecx, [esp + 0x38c]
push eax
push ecx
call edi
push 0xffffffffffffffff
lea edx, [esp + 0x390]
push 0
push edx
call fcn.00401870
add esp, 0xc
lea eax, [esp + 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
mov eax, 1
pop esi
add esp, 0x58c
ret