Function at 0x4025f0
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x43f350]
push esi
push edi
mov edi, dword [esp + 0x254]
push 0
push edi
mov dword [esp + 0x254], eax
call fcn.0041701d
add esp, 8
cmp eax, 0xffffffff
je 0x4028ce
mov esi, dword [esp + 0x258]
push 0
push esi
call fcn.0041701d
add esp, 8
cmp eax, 0xffffffff
je 0x4028ce
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconA]
mov esi, eax
test esi, esi
je 0x4028b4
cmp esi, 1
je 0x4028b4
lea edx, [esp + 0x4c]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402660
lea eax, [esp + 0x4c]
push 0x5c
push eax
call fcn.00417660
add esp, 8
test eax, eax
jne 0x402697
pop edi
mov eax, 3
pop esi
mov ecx, dword [esp + 0x244]
call fcn.00416fcd
add esp, 0x248
ret
mov ecx, dword [str.temp.txt]
push ebx
push 0
push 0
push 2
inc eax
mov dword [eax], ecx
mov edx, dword [0x43285c]
push 0
mov dword [eax + 4], edx
mov cl, byte [0x432860]
push 1
push 0x40000000
lea edx, [esp + 0x68]
push edx
mov byte [eax + 8], cl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402878
xor ecx, ecx
mov dword [esp + 0x28], ecx
push ebp
lea edx, [esp + 0x40]
xor eax, eax
mov dword [esp + 0x30], ecx
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ecx
push esi
mov word [esp + 0x30], ax
mov dword [esp + 0x40], ecx
call dword [sym.imp.USER32.dll_GetIconInfo]
mov ecx, dword [esp + 0x4c]
mov eax, 1
lea edi, [esp + 0x18]
lea esi, [esp + 0x10]
call fcn.00402550
mov ecx, dword [esp + 0x50]
mov eax, 0x20
lea edi, [esp + 0x1c]
lea esi, [esp + 0x20]
call fcn.00402550
mov eax, dword [esp + 0x10]
push eax
call fcn.004175d5
mov ecx, dword [esp + 0x24]
mov edi, eax
push ecx
mov dword [esp + 0x44], edi
call fcn.004175d5
mov edx, dword [esp + 0x20]
push edx
mov esi, eax
call fcn.004175d5
mov ebp, eax
mov eax, dword [esp + 0x28]
push eax
call fcn.004175d5
mov dword [esp + 0x20], eax
push 1
mov eax, edi
mov edi, dword [esp + 0x60]
push ebp
call fcn.004025b0
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x68]
push 0x20
push ecx
mov eax, esi
call fcn.004025b0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x20
push 0
mov eax, 1
lea edx, [esp + 0x18]
push edx
mov word [esp + 0x2e], ax
mov word [esp + 0x30], ax
push 6
lea eax, [esp + 0x30]
push eax
push ebx
call edi
mov cl, byte [esi + 4]
mov byte [esp + 0x2c], cl
mov dl, byte [esi + 8]
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x2d], dl
mov ax, word [esi + 0xe]
imul ax, word [esi + 0xc]
mov edx, dword [esp + 0x1c]
mov word [esp + 0x2e], ax
mov eax, dword [esp + 0x18]
add ecx, edx
add ecx, eax
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], 0x16
push eax
push 0x10
lea ecx, [esp + 0x38]
push ecx
push ebx
call edi
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 8]
push 0
lea eax, [esp + 0x18]
push eax
push ecx
push esi
shl edx, 1
push ebx
mov dword [esi + 8], edx
call edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push ebx
call edi
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x18]
push edx
push eax
push ebp
push ebx
call edi
push esi
call fcn.004175e7
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004175e7
mov edx, dword [esp + 0x18]
push edx
call fcn.004175e7
push ebp
call fcn.004175e7
mov eax, dword [esp + 0x60]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
add esp, 0x10
push eax
call esi
mov ecx, dword [esp + 0x4c]
push ecx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x25c]
pop ebp
lea edx, [esp + 0x50]
push edi
push edx
call fcn.004022e0
mov bl, al
add esp, 8
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec bl
neg bl
sbb ebx, ebx
and ebx, 4
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x244]
call fcn.00416fcd
add esp, 0x248
ret
pop edi
mov eax, 2
pop esi
mov ecx, dword [esp + 0x244]
call fcn.00416fcd
add esp, 0x248
ret
mov ecx, dword [esp + 0x24c]
pop edi
mov eax, 1
pop esi
call fcn.00416fcd
add esp, 0x248
ret