Function at 0x425d10
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], edi
xor ebx, ebx
mov edi, edi
push 0
push 0x80
push 4
push 0
push 3
push 0x1f01ff
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x425d89
inc ebx
cmp ebx, 0xa
jl 0x425d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._open_file_first__d
push str.CAlarmUserFile
push 0x67903c
call fcn.004ebec7
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret 4
test esi, esi
je 0x425d56
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp - 0x40]
push 0xf1
add ebx, 0x125
push 0
push ebx
mov dword [ebp - 0x44], eax
call fcn.00534b40
mov eax, dword [ebp - 0x44]
add esp, 0xc
test eax, eax
jne 0x425e23
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x3c]
push eax
push 0x18
lea ecx, [ebp - 0x1c]
push ecx
push esi
mov dword [ebp - 0x14], 0x34
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, 0xc8
lea esp, [esp]
push 0
lea edx, [ebp - 0x3c]
push edx
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec edi
jne 0x425df0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret 4
lea ecx, [eax - 0x18]
mov eax, 0x10fef011
mul ecx
mov ecx, edx
shr ecx, 4
mov eax, 0xae147ae1
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xc8
add ecx, eax
je 0x425e7e
push 2
push 0
push 0
mov edi, 0xc8
push esi
sub edi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
jle 0x425e7b
push 0
lea ecx, [ebp - 0x3c]
push ecx
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec edi
jne 0x425e65
mov edi, dword [ebp - 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], 0
lea esp, [esp]
push 0
push 0x80
push 4
push 0
push 3
push 0x1f01ff
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x425ecd
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 0xa
jl 0x425e90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._open_file_second__d
jmp 0x425d62
test esi, esi
je 0x425ebc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edx, [eax - 0x18]
mov eax, 0x10fef011
mul edx
push 0
push 0
push 0
mov edi, edx
push esi
shr edi, 4
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x3c]
push eax
push 0x18
lea ecx, [ebp - 0x34]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
dec edi
cmp dword [ebp - 0x34], edi
jl 0x425f5c
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
mov dword [ebp - 0x30], 0
call edi
push 0
lea edx, [ebp - 0x3c]
push edx
push 0x18
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push esi
call edi
mov edi, 0xc8
push 0
lea ecx, [ebp - 0x3c]
push ecx
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec edi
jne 0x425f46
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00534bba
mov esp, ebp
pop ebp
ret 4