Function at 0x42c5f0
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459080
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x10], esp
mov eax, ecx
mov esi, edi
mov edi, edx
push str.delete_SMS_from_file:_Begin_n
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 2
and ecx, 3
push 2
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x18], ebx
call fcn.004048e0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp eax, 3
ja case.default.0x42c65c
jmp dword [eax*4 + 0x42ca28]
mov eax, dword [ebx + 0x611c]
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
jae 0x42c695
mov ecx, dword [ebx + ecx*4 + 0x10c]
push ecx
mov ecx, ebx
call fcn.0042d120
xor ax, ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push eax
push ecx
push str.delete_SMS_stat_file:_SMSSIM_Invalid_index__d__count__d
push 1
push 2
call fcn.004048e0
add esp, 0x18
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 0x610c]
add ebx, 0x610c
mov ebx, dword [ebp + 0xc]
cmp ebx, eax
jae 0x42c71a
mov edi, 0x476e14
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x18]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [eax + 0x610c]
add eax, 0x6128
mov dword [ebp - 0x14], eax
jmp 0x42c7f6
push 0
push eax
push ebx
push str.delete_SMS_stat_file:_SMSInbox_Invalid_index__d__count__d
jmp 0x42c69e
mov eax, dword [ebx + 0x6114]
add ebx, 0x6114
mov ebx, dword [ebp + 0xc]
cmp ebx, eax
jae 0x42c77e
mov edi, 0x476e18
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x18]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [eax + 0x6114]
add eax, 0x612c
mov dword [ebp - 0x14], eax
jmp 0x42c7f6
push 0
push eax
push ebx
push str.delete_SMS_stat_file:_SMSOutbox_Invalid_index__d__count__d
jmp 0x42c69e
mov eax, dword [ebx + 0x6118]
add ebx, 0x6118
mov ebx, dword [ebp + 0xc]
cmp ebx, eax
jae 0x42c7e2
mov edi, str.Sent
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x18]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [eax + 0x6118]
add eax, 0x6130
mov dword [ebp - 0x14], eax
jmp 0x42c7f6
push 0
push eax
push ebx
push str.delete_SMS_stat_file:_SMSSentbox_Invalid_index__d__count__d
jmp 0x42c69e
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [ebp - 4], 0
test eax, eax
jne 0x42c819
xor ax, ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x128]
push 0x477484
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x42c844
mov ecx, dword [ebp + 8]
push eax
push ebx
push ecx
push str.delete_SMS_from_file:_Error_opening_SMS_file_for_write.__Box_ID__d__index__d
jmp 0x42c69e
push esi
call dword [sym.imp.MSVCRT.dll_rewind]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + ebx*8]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + ebx*8 + 4]
lea eax, [ebp - 0x24]
push eax
push esi
mov dword [ebp - 0x20], edx
call dword [sym.imp.MSVCRT.dll_fsetpos]
mov al, byte [esi + 0xc]
add esp, 0xc
test al, 0x10
je 0x42c88d
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [ebp + 8]
add esp, 4
push 0
push ebx
push ecx
push str.delete_SMS_from_file:_EOF_for_SMS_file_for_delete.__Box_ID__d__index__d
jmp 0x42c69e
mov eax, dword [ebp + 8]
test eax, eax
jne 0x42c8fd
push esi
push 1
lea edx, [ebp - 0x1c]
push 2
push edx
mov dword [ebp - 0x1c], 0
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x42c8cb
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0
push ebx
push 0
push str.delete_SMS_from_file:_Error_reading_SMS_status.__Box_ID__d__index__d
jmp 0x42c69e
mov eax, dword [ebp - 0x1c]
cmp ax, 0xea61
je 0x42c8da
cmp ax, 0xea62
jne 0x42c8ef
mov ecx, dword [ebp - 0x18]
mov al, byte [ecx + 0x6124]
test al, al
je 0x42c8ef
dec al
mov byte [ecx + 0x6124], al
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_fsetpos]
add esp, 8
push esi
push 1
lea ecx, [ebp - 0x28]
push 1
push ecx
mov dword [ebp - 0x28], 0xea60
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
push esi
je 0x42c936
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [ebp + 8]
add esp, 4
push 0
push ebx
push edx
push str.delete_SMS_from_file:_Error_writing_status_for_SMS.__Box_ID__d__index__d
jmp 0x42c69e
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [edi]
add esp, 4
lea edx, [eax*8]
dec eax
test eax, eax
mov dword [edi], eax
jbe 0x42c9a2
mov ecx, dword [ebp - 0x14]
lea eax, [ebx*8 + 8]
mov edi, dword [ecx]
mov ecx, edx
sub ecx, eax
add edx, 0xfffffff8
lea esi, [eax + edi]
mov eax, ecx
lea edi, [edi + ebx*8]
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x42c9c4
push str.delete_SMS_from_file:_Failed_to_realloc_sms_stat_buffer.
push 1
push 2
call fcn.004048e0
add esp, 0xc
jmp 0x42c6aa
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.MSVCRT.dll_remove]
mov esi, dword [ebp - 0x14]
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
mov dword [esi], 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0042b8a0
test eax, eax
je 0x42c6aa
push str.delete_SMS_from_file:_End_n
push 2
push 2
mov dword [ebp - 4], 0xffffffff
call fcn.004048e0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
xor ax, ax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8