Function at 0x408ab0
Capabilities:
Delete file
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub esp, 0xe60
push ebx
push ebp
push esi
push edi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x470]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x270]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x870]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x670]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xe78]
lea ecx, [esp + 0x470]
push eax
push ecx
call ebp
mov edx, dword [esp + 0xe7c]
lea eax, [esp + 0x870]
push edx
push eax
call ebp
mov ecx, dword [esp + 0xe80]
lea edx, [esp + 0x30]
push ecx
push edx
call ebp
lea ecx, [esp + 0x870]
push str..tsz
push ecx
lea edx, [esp + 0x278]
lea eax, [esp + 0x38]
xor ebx, ebx
push str._s_s
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x270]
lea ecx, [esp + 0x670]
push eax
push ecx
call ebp
lea edx, [esp + 0x670]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x670]
lea eax, [esp + eax + 0x670]
dec eax
cmp cl, 0x5c
je 0x408bad
mov dl, byte [eax]
dec eax
cmp dl, 0x5c
jne 0x408ba5
mov byte [eax + 1], bl
lea eax, [esp + 0x670]
push eax
call fcn.00409250
add esp, 4
lea ecx, [esp + 0x130]
lea edx, [esp + 0x470]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x408d63
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x150]
mov ecx, 0x100
mov dword [esp + 0x1c], eax
xor eax, eax
lea edi, [esp + 0xa70]
push ebx
push 0x80
push 3
rep stosd dword es:[edi], eax
push ebx
push 1
lea ecx, [esp + 0x484]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408d63
push ebx
push ebx
push ebx
call fcn.004092c0
lea edx, [esp + 0x2c]
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x280]
push 0x416e20
push eax
call fcn.004094b0
mov ecx, dword [esp + 0xe98]
add esp, 0x18
lea edx, [esp + 0x30]
mov edi, eax
push ecx
push edx
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0xa78]
push 0x400
lea eax, [esp + 0x3c]
push edx
push esi
mov dword [esp + 0x34], eax
call ebp
test eax, eax
je 0x408cdd
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x408cdd
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0xa74]
push eax
push ecx
call fcn.004092c0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0xa7c]
push edx
push eax
push ecx
push edi
call fcn.00409d70
add esp, 0x1c
lea edx, [esp + 0x10]
lea eax, [esp + 0xa70]
push ebx
push edx
push 0x400
push eax
push esi
call ebp
test eax, eax
jne 0x408c89
lea ecx, [esp + 0x20]
push ecx
push edi
call fcn.0040a000
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push esi
call edi
push ebx
push 0x80
push 3
push ebx
push 2
lea edx, [esp + 0x284]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408d55
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x18]
push ebx
push ecx
lea edx, [esp + 0x1c]
push 4
push edx
push esi
call ebp
test eax, eax
je 0x408d52
lea ecx, [esp + 0x18]
push ebx
push ecx
lea edx, [esp + 0x24]
push 4
push edx
push esi
call ebp
test eax, eax
jne 0x408d70
push esi
call edi
lea eax, [esp + 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xe60
ret
lea ecx, [esp + 0x144]
lea edx, [esp + 0x13c]
push ecx
lea eax, [esp + 0x138]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0xe84]
push esi
mov dword [ecx], eax
call edi
mov edx, dword [esp + 0x130]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x270]
push edx
push eax
call esi
cmp dword [esp + 0xe74], ebx
je 0x408de1
lea ecx, [esp + 0x470]
push 0x80
push ecx
call esi
lea edx, [esp + 0x470]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xe60
ret