Function at 0x40e6a0
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
mov esi, dword [esp + 0x818]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
lea eax, [esp + 0x1c]
mov ebp, ecx
push str._shistory.dat
push eax
mov dword [esp + 0x20], ebp
call edi
add esp, 0xc
lea ecx, [esp + 0x18]
add ebp, 0x6a8
push ecx
push 1
mov ecx, ebp
call fcn.00412530
push esi
lea edx, [esp + 0x1c]
push str._ssunzg1.cg
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x18]
mov ecx, ebp
push eax
push 1
call fcn.00412530
push esi
lea ecx, [esp + 0x1c]
push str._sPIG3UI01.dat
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x18]
mov ecx, ebp
push edx
push 1
call fcn.00412530
push esi
lea eax, [esp + 0x1c]
push str._snotes.dat
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 1
mov ecx, ebp
call fcn.00412530
push esi
lea edx, [esp + 0x1c]
push str._skeywords.dat
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x18]
mov ecx, ebp
push eax
push 1
call fcn.00412530
push esi
lea ecx, [esp + 0x1c]
push str._sremind.dat
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x18]
mov ecx, ebp
push edx
push 1
call fcn.00412530
push esi
lea eax, [esp + 0x1c]
push str._sHistoryUrl.dat
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 1
mov ecx, ebp
call fcn.00412530
push esi
lea edx, [esp + 0x1c]
push str._saddbook.hd
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x18]
mov ecx, ebp
push eax
push 1
call fcn.00412530
push esi
lea ecx, [esp + 0x1c]
push str._saddbook.fg
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x18]
mov ecx, ebp
push edx
push 1
call fcn.00412530
push esi
lea eax, [esp + 0x1c]
push str._saddbook.dt
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 1
mov ecx, ebp
call fcn.00412530
push esi
lea edx, [esp + 0x1c]
push str._sshortcut.dat
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x18]
mov ecx, ebp
push eax
push 1
call fcn.00412530
push esi
lea ecx, [esp + 0x1c]
push str._ssunzg.cg
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x18]
mov ecx, ebp
push edx
push 1
call fcn.00412530
push esi
lea eax, [esp + 0x1c]
push 0x4199bc
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 1
mov ecx, ebp
call fcn.00412530
push esi
lea edx, [esp + 0x1c]
push 0x4199bc
push edx
call edi
lea eax, [esp + 0x24]
push 0x419928
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x14
mov esi, eax
test esi, esi
jne 0x40e87f
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x808
ret 4
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea ecx, [esp + 0x18]
push 4
push ecx
mov dword [esp + 0x20], 0
call edi
add esp, 0x10
cmp eax, 1
jne 0x40e984
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
mov eax, dword [esp + 0x10]
cmp eax, 0x400
jg 0x40e9af
test eax, eax
jl 0x40e9af
push esi
push eax
lea edx, [esp + 0x420]
push 1
push edx
call edi
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp eax, ecx
jne 0x40e993
lea eax, [esp + 0x418]
push str.DeskBar.dll
push eax
mov byte [esp + ecx + 0x420], 0
call ebx
add esp, 8
test eax, eax
jne 0x40e913
lea ecx, [esp + 0x418]
push str.I_SearchIE.dll
push ecx
call ebx
add esp, 8
test eax, eax
je 0x40e935
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x418]
push edx
call fcn.0040e580
lea eax, [esp + 0x418]
mov ecx, ebp
push eax
push 1
call fcn.00412530
lea ecx, [esp + 0x418]
push str.PigIE.exe
push ecx
call ebx
add esp, 8
test eax, eax
je 0x40e95e
lea edx, [esp + 0x418]
mov ecx, ebp
push edx
push 1
call fcn.00412530
jmp 0x40e96c
lea eax, [esp + 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push 1
lea ecx, [esp + 0x18]
push 4
push ecx
call edi
add esp, 0x10
cmp eax, 1
je 0x40e8ab
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret 4
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0xfffffffd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret 4
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret 4