Function at 0x42bbf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459050
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
push str.get_newSMS_count:_Begin_n
push 2
push 2
mov dword [ebp - 0x20], ebx
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
lea edx, [ebp - 0x120]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [ebp - 4], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx + 0x610c]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x42bc74
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x476e14
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x476e0c
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 ecx, edx
lea eax, [ebp - 0x120]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x42bcea
lea ecx, [ebp - 0x120]
push ecx
push str.get_newSMS_count:_Failed_to_open_file__s
push 1
push 2
call fcn.004048e0
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.MSVCRT.dll_rewind]
add esp, 4
mov byte [ebp - 0x11], 0
xor edi, edi
cmp edi, dword [ebx + 0x610c]
jae 0x42bdf5
mov edx, dword [ebx + 0x6128]
mov eax, dword [edx + edi*8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [edx + edi*8 + 4]
lea edx, [ebp - 0x1c]
push edx
push esi
mov dword [ebp - 0x18], ecx
call dword [sym.imp.MSVCRT.dll_fsetpos]
mov al, byte [esi + 0xc]
add esp, 8
test al, 0x10
push esi
je 0x42bd66
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea eax, [ebp - 0x120]
push 0
push edi
push eax
push str.get_newSMS_count:_EOF_reached_in__s.__d.
push 1
push 2
call fcn.004048e0
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea ecx, [ebp - 0x14]
push 2
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov ebx, eax
add esp, 0x10
cmp ebx, 1
je 0x42bdcd
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add esp, 4
push ebx
push edx
push eax
push edi
push str.get_newSMS_count:_Failed_to_read_indicator_for_index__d__file_pos__d.__fread_returned__d
push 1
push 2
call fcn.004048e0
add esp, 0x1c
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ax, word [ebp - 0x14]
cmp ax, 0xea61
je 0x42bde9
cmp ax, 0xea62
je 0x42bde9
cmp ax, 0xeac5
je 0x42bde9
cmp ax, 0xeac6
jne 0x42bdec
inc byte [ebp - 0x11]
mov ebx, dword [ebp - 0x20]
inc edi
jmp 0x42bcfa
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [ebp - 4], 0xffffffff
push str.get_newSMS_count:_End_n
push 2
push 2
call fcn.004048e0
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
add esp, 0xc
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret