Function at 0x463e10
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681371
mov eax, dword fs:[0]
push eax
mov eax, 0x424c
call fcn.006122b0
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push dword [edi + 0x1c]
lea esi, [edi + 0x1c]
mov dword [ebp - 0x4258], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 4]
mov dword [ebp - 4], 0
mov dword [ebp - 0x4254], eax
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x4640b1
cmp dword [edi + 0x14], 0
je 0x463e8d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [edi + 0x14], eax
jae 0x463e8d
mov ecx, edi
call fcn.00463530
mov edi, dword [ebp - 0x4254]
push 2
push 0
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x4238]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x4238], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0064cf50
movzx eax, word [ebp - 0x422a]
push eax
movzx eax, word [ebp - 0x422c]
push eax
movzx eax, word [ebp - 0x422e]
push eax
movzx eax, word [ebp - 0x4230]
push eax
movzx eax, word [ebp - 0x4232]
push eax
movzx eax, word [ebp - 0x4236]
push eax
movzx eax, word [ebp - 0x4238]
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d
lea eax, [ebp - 0x210]
push 0x200
push eax
call fcn.00464310
add esp, 0x34
test eax, eax
js 0x463f75
mov ecx, 0x200
lea eax, [ebp - 0x210]
nop dword [eax + eax]
cmp byte [eax], 0
je 0x463f3b
inc eax
sub ecx, 1
jne 0x463f30
mov eax, 0x200
mov edx, ecx
sub eax, ecx
neg edx
sbb edx, edx
and edx, eax
test ecx, ecx
je 0x463f75
test edx, edx
je 0x463f75
push 0
lea eax, [ebp - 0x4254]
mov dword [ebp - 0x4254], 0
push eax
push edx
lea eax, [ebp - 0x210]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x4000
lea eax, [ebp - 0x4210]
push 0
push eax
call fcn.0064cf50
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x4210]
push 0x1fff
push eax
call fcn.0044fd90
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00659142
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x464071
cmp eax, 0x1fff
ja 0x464071
jne 0x463fdc
xor eax, eax
mov word [ebp - 0x212], ax
lea eax, [ebp - 0x4210]
push eax
lea ecx, [ebp - 0x4250]
call fcn.00464940
push eax
lea eax, [ebp - 0x4228]
mov byte [ebp - 4], 1
push eax
call fcn.00636180
add esp, 8
lea ecx, [ebp - 0x4250]
mov byte [ebp - 4], 3
call fcn.00453390
push 0x768f1c
lea ecx, [ebp - 0x4228]
call fcn.004515c0
cmp dword [ebp - 0x4214], 0x10
lea eax, [ebp - 0x4228]
push dword [ebp - 0x4218]
cmovae eax, dword [ebp - 0x4228]
mov ecx, edi
push eax
call fcn.00464170
mov edx, dword [ebp - 0x4214]
cmp edx, 0x10
jb 0x4640b1
mov ecx, dword [ebp - 0x4228]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4640a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4640d4
jmp 0x4640a7
xor eax, eax
mov dword [ebp - 0x4214], 0xf
push 0x24
push str.Cant_write_to_log._Too_big_string._n
lea ecx, [ebp - 0x4228]
mov word [ebp - 0x212], ax
mov dword [ebp - 0x4218], eax
mov byte [ebp - 0x4228], al
call fcn.0044fad0
jmp 0x464021
push edx
push ecx
call fcn.00611704
add esp, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
ret
call fcn.00655e38
int3