Function at 0x42cdf0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4590a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
push str.set_SMS_indicator:_Begin_n
xor esi, esi
push 2
push 2
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], esi
call fcn.004048e0
lea edi, [ebx + 0xc]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 4], esi
lea edx, [ebp - 0x124]
mov eax, ecx
mov esi, edi
mov edi, 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 edi, dword [ebp + 8]
mov eax, edi
sub eax, 0
je 0x42cf3a
dec eax
je 0x42cee7
dec eax
jne 0x42cf96
mov eax, dword [ebx + 0x6118]
mov ebx, dword [ebp + 0xc]
cmp ebx, eax
jae 0x42cebb
mov edi, str.Sent
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x124]
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]
mov ecx, dword [eax + 0x6130]
jmp 0x42cf84
push 0
push eax
push ebx
push str.set_SMS_indicator:_SMSSentbox_index_out_of_range__d._total__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 0xc
mov eax, dword [ebx + 0x6114]
mov ebx, dword [ebp + 0xc]
cmp ebx, eax
jae 0x42cf2f
mov edi, 0x476e18
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x124]
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]
mov ecx, dword [eax + 0x612c]
jmp 0x42cf84
push 0
push eax
push ebx
push str.set_SMS_indicator:_SMSOutbox_index_out_of_range__d._total__d
jmp 0x42cec4
mov eax, dword [ebx + 0x610c]
mov ebx, dword [ebp + 0xc]
cmp ebx, eax
jae 0x42d0dc
mov edi, 0x476e14
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x124]
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]
mov ecx, dword [eax + 0x6128]
mov edx, dword [ecx + ebx*8]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ecx + ebx*8 + 4]
mov dword [ebp - 0x1c], eax
jmp 0x42cf99
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x124]
push 0x477484
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
mov dword [ebp - 0x14], esi
jne 0x42cfc4
push eax
push ebx
push edi
push str.SetStatus:_Error_opening_SMS_file_for_write.__Box_ID__d__index__d
jmp 0x42cec4
push esi
call dword [sym.imp.MSVCRT.dll_rewind]
lea edx, [ebp - 0x20]
push edx
push esi
call dword [sym.imp.MSVCRT.dll_fsetpos]
mov al, byte [esi + 0xc]
add esp, 0xc
test al, 0x10
je 0x42cfff
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [ebp - 0x14], 0
push 0
push ebx
push edi
push str.SetStatus:_EOF_for_SMS_file_for_write.__Box_ID__d__index__d
jmp 0x42cec4
test edi, edi
jne 0x42d06f
push esi
push 1
lea eax, [ebp - 0x24]
push 2
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x42d034
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [ebp - 0x14], edi
push edi
push ebx
push edi
push str.SetStatus:_Error_reading_SMS_status.__Box_ID__d__index__d
jmp 0x42cec4
mov eax, dword [ebp - 0x24]
cmp ax, 0xea61
je 0x42d043
cmp ax, 0xea62
jne 0x42d061
cmp dword [ebp + 0x10], 0xea63
jne 0x42d061
mov ecx, dword [ebp - 0x18]
mov al, byte [ecx + 0x6124]
test al, al
je 0x42d061
dec al
mov byte [ecx + 0x6124], al
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fsetpos]
add esp, 8
push esi
push 1
lea edx, [ebp + 0x10]
push 2
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
push esi
je 0x42d0a5
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [ebp - 0x14], 0
push 0
push ebx
push edi
push str.SetStatus:_Error_writing_SMS_status.__Box_ID__d__index__d
jmp 0x42cec4
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [ebp - 4], 0xffffffff
push str.set_SMS_indicator:_End_n
push 2
push 2
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 0xc
push 0
push eax
push ebx
push str.set_SMS_indicator:_SMSInbox_index_out_of_range__d._total__d
jmp 0x42cec4