Function at 0x42b8a0
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459040
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
push str.UpdatStat:_Begin_n
push 2
push 2
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 - 0x118]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 8]
and ecx, 3
sub eax, 0
rep movsb byte es:[edi], byte [esi]
je 0x42b998
dec eax
je 0x42b957
dec eax
jne 0x42b9da
mov edi, str.Sent
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x118]
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 ecx, edx
lea eax, [ebx + 0x6118]
and ecx, 3
mov dword [ebp - 0x14], eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 0x6130]
jmp 0x42b9d7
mov edi, 0x476e18
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x118]
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 ecx, edx
lea eax, [ebx + 0x6114]
and ecx, 3
mov dword [ebp - 0x14], eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 0x612c]
jmp 0x42b9d7
mov edi, 0x476e14
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x118]
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 ecx, edx
lea eax, [ebx + 0x610c]
and ecx, 3
mov dword [ebp - 0x14], eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 0x6128]
mov dword [ebp - 0x18], ecx
mov edi, 0x476e10
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x118]
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 - 0x14]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [eax], 0
jne 0x42ba27
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
jmp 0x42bbcb
lea edi, [ebp - 0x118]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x21c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 4], 0
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]
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [ebp - 0x21c]
push str.tmpsmsstat.bin
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x21c]
push 0x476f24
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x42babb
mov ecx, dword [ebp + 8]
push ecx
push str.UpdateStat:_Error_opening_SMS_stat_file_for_write.__Box_ID__d
push 1
push 2
call fcn.004048e0
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.MSVCRT.dll_rewind]
mov eax, dword [ebp + 8]
add esp, 4
test eax, eax
jne 0x42bb21
mov edx, dword [ebx + 0x6120]
push esi
push 1
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x42bb21
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebx + 0x6120]
xor ecx, ecx
add esp, 4
mov cl, byte [eax]
push ecx
push str.update_SMS_stat_file:_Failed_to_write_unique_SMS_ID__d.
push 1
push 2
call fcn.004048e0
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push esi
mov edi, dword [edx]
mov eax, dword [ebx]
push edi
push 8
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, edi
push esi
je 0x42bb89
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [ebx]
add esp, 4
push ecx
push str.update_SMS_stat_file:_Failed_to_write_message_pointer__s
push 1
push 2
call fcn.004048e0
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_fclose]
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.MSVCRT.dll_remove]
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x21c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
push str.UpdatStat:_End_n
push 2
push 2
call fcn.004048e0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4