Function at 0x4a39a8
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1f], 0
je 0x4a3b6b
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
sub ax, 4
jae 0x4a3b6b
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
sub ax, 2
jb 0x4a39ea
sub ax, 2
jb 0x4a3a0b
jmp 0x4a3a31
mov eax, dword [ebp - 4]
movzx ebx, word [eax + 8]
mov eax, ebx
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x40]
cdq
idiv ecx
mov dword [ebp - 0xc], eax
mov eax, ebx
cdq
idiv ecx
mov dword [ebp - 0x10], edx
mov edi, ecx
jmp 0x4a3a3d
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0xa]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
cdq
idiv ebx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
cdq
idiv ebx
mov dword [ebp - 0xc], eax
mov edi, ebx
jmp 0x4a3a3d
xor edi, edi
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
test edi, edi
jle 0x4a3aeb
call sub.KERNEL32.DLL_SetEndOfFile
mov ebx, eax
mov esi, ebx
sub esi, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
cmp esi, dword [eax + 0x20]
jae 0x4a3a6c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
sub eax, esi
push eax
call sub.KERNEL32.DLL_EnumCalendarInfoW
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
sub ax, 1
jb 0x4a3a8a
je 0x4a3a9d
dec ax
je 0x4a3ab0
dec ax
je 0x4a3ac3
jmp 0x4a3ad4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004a3d1c
jmp 0x4a3ad4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004a3d1c
jmp 0x4a3ad4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004a3d1c
jmp 0x4a3ad4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004a3d1c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x9c]
dec edi
test edi, edi
jg 0x4a3a4a
cmp dword [ebp - 0x10], 0
jle case.default.0x4a3b7b
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
sub ax, 1
jb 0x4a3b13
je 0x4a3b29
dec ax
je 0x4a3b3f
dec ax
je 0x4a3b55
jmp case.default.0x4a3b7b
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004a3d1c
jmp case.default.0x4a3b7b
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004a3d1c
jmp case.default.0x4a3b7b
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004a3d1c
jmp case.default.0x4a3b7b
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004a3d1c
jmp case.default.0x4a3b7b
mov eax, dword [ebp - 8]
movsx eax, word [eax + 4]
cmp eax, 7
ja case.default.0x4a3b7b
jmp dword [eax*4 + 0x4a3b82]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
movzx eax, word [eax + 8]
sub edx, eax
mov eax, dword [ebp - 4]
call fcn.004a3d1c
jmp case.default.0x4a3b7b
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
movzx eax, word [eax + 8]
add edx, eax
mov eax, dword [ebp - 4]
call fcn.004a3d1c
jmp case.default.0x4a3b7b
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004a38a4
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
sub edx, eax
mov eax, dword [ebp - 4]
call fcn.004a3d1c
jmp case.default.0x4a3b7b
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004a38a4
mov edx, eax
mov eax, dword [ebp - 4]
add edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.004a3d1c
jmp case.default.0x4a3b7b
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0x7fff
jle 0x4a3c3b
push ebp
call fcn.004a394c
pop ecx
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004a3d1c
jmp case.default.0x4a3b7b
mov edx, dword [ebp - 8]
movsx edx, word [edx + 6]
mov eax, dword [ebp - 4]
call fcn.004a3d1c
jmp case.default.0x4a3b7b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1d], 0
je case.default.0x4a3b7b
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0x7fff
jle 0x4a3c74
push ebp
call fcn.004a394c
pop ecx
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004a3d1c
jmp case.default.0x4a3b7b
mov edx, dword [ebp - 8]
movsx edx, word [edx + 6]
mov eax, dword [ebp - 4]
call fcn.004a3d1c
jmp case.default.0x4a3b7b
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004a3d1c
jmp case.default.0x4a3b7b
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 4]
call fcn.004a3d1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret