Function at 0x42ca40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459090
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30c
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
push str.get_SMS_indicator:_Begin_n
push 2
push 2
mov dword [ebp - 0x18], ebx
call fcn.004048e0
mov edx, dword [ebp + 0x10]
lea edi, [ebx + 0xc]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov dword [edx], 0xea69
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebp - 0x124]
sub edi, ecx
mov eax, ecx
mov dword [ebp - 0x24], esi
mov esi, edi
mov edi, dword [ebp - 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [ebp - 4], 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
cmp esi, 3
ja case.default.0x42cac0
jmp dword [esi*4 + 0x42cddc]
mov eax, dword [ebx + 0x611c]
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
jae 0x42caf6
mov ecx, dword [ebx + ecx*4 + 0x10c]
mov ax, word [ebx + ecx*2 + 0x410c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push eax
push ecx
push str.get_SMS_indicator:_SMSSIM_index_out_of_range__d._total__d
jmp 0x42cca8
mov eax, dword [ebx + 0x610c]
mov ebx, dword [ebp + 0xc]
cmp ebx, eax
jae 0x42cb4c
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]
jmp 0x42cba0
push 0
push eax
push ebx
push str.get_SMS_indicator:_SMSInbox_index_out_of_range__d._total__d
jmp 0x42cca8
mov eax, dword [ebx + 0x6114]
mov ebx, dword [ebp + 0xc]
cmp ebx, eax
jae 0x42cbb2
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]
mov edx, dword [ecx + ebx*8]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ecx + ebx*8 + 4]
mov dword [ebp - 0x1c], eax
jmp 0x42cbe9
push 0
push eax
push ebx
push str.get_SMS_indicator:_SMSOutbox_index_out_of_range__d._total__d
jmp 0x42cca8
mov ebx, dword [ebx + 0x6118]
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jae 0x42cbd8
mov dword [edx], 0xea67
jmp 0x42cd90
push 0
push ebx
push eax
push str.get_SMS_indicator:_SMSSentbox_index_out_of_range__d._total__d
jmp 0x42cca8
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x124]
push 0x476e0c
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebp + 8], edi
jne 0x42cc36
lea edx, [ebp - 0x124]
push edx
push str.get_SMS_indicator:_failed_to_open__s
push 1
push 2
call fcn.004048e0
add esp, 0x10
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
push edi
call dword [sym.imp.MSVCRT.dll_rewind]
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.MSVCRT.dll_fsetpos]
mov al, byte [edi + 0xc]
add esp, 0xc
test al, 0x10
push edi
je 0x42cc73
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [ebp - 0x124]
mov dword [ebp + 8], 0
push ebx
push esi
push ecx
push str.get_SMS_indicator:_EOF_for__s.__Box_ID__d__index__d
jmp 0x42cca8
push 1
lea edx, [ebp - 0x14]
push 2
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
push edi
je 0x42cccb
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea eax, [ebp - 0x124]
mov dword [ebp + 8], 0
push ebx
push esi
push eax
push str.get_SMS_indicator:_failed_to_read_indicator_from__s__Box_ID__d__index__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
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
mov ecx, eax
add esp, 4
and ecx, 0xffff
cmp esi, 1
mov dword [ebp + 8], 0
mov dword [edx], ecx
jne 0x42cd6e
cmp ax, 0xea66
je 0x42cd6e
cmp ax, 0xea67
jne 0x42cd6e
mov ecx, 0x7d
xor eax, eax
lea edi, [ebp - 0x318]
push 0x1f4
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x318]
lea ecx, [ebp + 0xe]
push eax
push ecx
push ebx
push esi
mov esi, dword [ebp - 0x18]
mov ecx, esi
call fcn.0042be30
test ax, ax
jne 0x42cda6
push 0
push 0xea67
lea edx, [ebp - 0x318]
push 0x1f4
push edx
push 2
mov ecx, esi
call fcn.0042c190
cmp ax, 1
push ebx
je 0x42cd5a
push 1
mov ecx, esi
call fcn.0042c5f0
jmp 0x42cd6b
push str.get_SMS_indicator:_Failed_to_write_sent_message_to_Sentbox:_Index__d
push 1
push 2
call fcn.004048e0
add esp, 0x10
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
push str.get_SMS_indicator:_End_n
and eax, 0xffff
push 2
push 2
mov dword [ebp - 4], 0xffffffff
mov dword [ecx], eax
call fcn.004048e0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor ax, ax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ebx
push str.get_SMS_indicator:_Failed_to_read_sent_message_from_Outbox:_Index__d
jmp 0x42cd5f